misc: better build error handling

This commit is contained in:
Pooya Parsa 2018-03-23 13:03:04 +04:30
parent 419d994a95
commit 992f18afab
2 changed files with 3 additions and 4 deletions

View File

@ -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,

View File

@ -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$/,