babeljs - webpack hide stack trace from babel errors -
i have relatively standard webpack setup: webpack + babel-stage-0
if there's syntax error, babel gives me helpful error message there's stack trace irrelevant code, longer terminal itself.
is there way hide stacktrace parser.pp.raise
i know minor thing, having stack trace hidden mean less visual noise, , dont have scroll half terminal window see error message.
things i've tried
i tried hiding stderr with:
webpack --watch > /dev/null
but didn't seem help.
i've been having same problem , there apparently no real solutions this. came hack:
$ webpack --watch --color | grep -v '^ @ .*/node_modules/'
this filter webpack output remove traceback node_modules dir, , --color
option ensures grep doesn't remove colors
Comments
Post a Comment