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
if (!this.options.dev && !this.options.test) {
if (this.options.dev) {
plugins.push(
new FriendlyErrorsWebpackPlugin({
clearConsole: true,

View File

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