mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
feat: add an option to disable FriendlyErrorsWebpackPlugin (#4498)
This commit is contained in:
parent
7c820d9262
commit
f1b2ca3d60
@ -103,5 +103,6 @@ export default () => ({
|
||||
/index\..+\.html$/,
|
||||
/vue-ssr-(client|modern)-manifest.json/
|
||||
]
|
||||
}
|
||||
},
|
||||
friendlyErrors: true
|
||||
})
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user