mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +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
|
// Add friendly error plugin
|
||||||
if (!this.options.dev && !this.options.test) {
|
if (this.options.dev) {
|
||||||
plugins.push(
|
plugins.push(
|
||||||
new FriendlyErrorsWebpackPlugin({
|
new FriendlyErrorsWebpackPlugin({
|
||||||
clearConsole: true,
|
clearConsole: true,
|
||||||
|
@ -83,9 +83,8 @@ export default {
|
|||||||
children: false,
|
children: false,
|
||||||
modules: false,
|
modules: false,
|
||||||
colors: true,
|
colors: true,
|
||||||
// Warning and Erros will be handled by friendly-errors-plugin
|
warnings: true,
|
||||||
warnings: false,
|
errors: true,
|
||||||
errors: false,
|
|
||||||
excludeAssets: [
|
excludeAssets: [
|
||||||
/.map$/,
|
/.map$/,
|
||||||
/index\..+\.html$/,
|
/index\..+\.html$/,
|
||||||
|
Loading…
Reference in New Issue
Block a user