Created
February 1, 2019 22:56
-
-
Save tony19/4c0f08f6277be74f41e962201c9abca5 to your computer and use it in GitHub Desktop.
Configure Vue CLI project to emit full stack of errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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