mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
misc: better build error handling
This commit is contained in:
parent
419d994a95
commit
992f18afab
@ -216,7 +216,7 @@ export default class WebpackBaseConfig {
|
||||
}
|
||||
|
||||
// Add friendly error plugin
|
||||
if (!this.options.dev && !this.options.test) {
|
||||
if (this.options.dev) {
|
||||
plugins.push(
|
||||
new FriendlyErrorsWebpackPlugin({
|
||||
clearConsole: true,
|
||||
|
@ -83,9 +83,8 @@ export default {
|
||||
children: false,
|
||||
modules: false,
|
||||
colors: true,
|
||||
// Warning and Erros will be handled by friendly-errors-plugin
|
||||
warnings: false,
|
||||
errors: false,
|
||||
warnings: true,
|
||||
errors: true,
|
||||
excludeAssets: [
|
||||
/.map$/,
|
||||
/index\..+\.html$/,
|
||||
|
Loading…
Reference in New Issue
Block a user