Skip to content

Instantly share code, notes, and snippets.

@tony19
Created February 1, 2019 22:56
Show Gist options
  • Save tony19/4c0f08f6277be74f41e962201c9abca5 to your computer and use it in GitHub Desktop.
Save tony19/4c0f08f6277be74f41e962201c9abca5 to your computer and use it in GitHub Desktop.
Configure Vue CLI project to emit full stack of errors
module.exports = {
chainWebpack: config => {
config.plugin('friendly-errors')
.tap(args => {
args[0].onErrors = (severity, errors) => {
// if (severity !== 'error') {
// return;
// }
for (const error of errors) {
console.error(error.webpackError)
}
}
return args
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment