feat: add an option to disable FriendlyErrorsWebpackPlugin (#4498)

This commit is contained in:
Alexander Lichter 2018-12-09 10:08:59 +00:00 committed by Pooya Parsa
parent 7c820d9262
commit f1b2ca3d60
2 changed files with 3 additions and 2 deletions

View File

@ -103,5 +103,6 @@ export default () => ({
/index\..+\.html$/,
/vue-ssr-(client|modern)-manifest.json/
]
}
},
friendlyErrors: true
})

View File

@ -153,7 +153,7 @@ export default class WebpackClientConfig extends WebpackBaseConfig {
}
// Add friendly error plugin
if (this.options.dev && !this.options.build.quiet) {
if (this.options.dev && !this.options.build.quiet && !this.options.build.friendlyErrors) {
config.plugins.push(
new FriendlyErrorsWebpackPlugin({
clearConsole: false,