From e2a79982a63d8652c762511f9c2d0f92afd1da0c Mon Sep 17 00:00:00 2001 From: eV Date: Wed, 17 May 2017 20:32:02 +0000 Subject: [PATCH] Add env var to disable webpack-notifier, fixes #8916 --- webpack.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index e74f42df340..fdf11b74cd6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,7 +10,7 @@ var env = process.env.NODE_ENV === 'production' ? 'production' : (process.env.NODE_ENV === 'test' ? 'test' : 'development') function config () { - return { + let c = { devtool: '#source-map', cache: true, module: { @@ -55,7 +55,6 @@ function config () { 'electron': 'chrome' }, plugins: [ - new WebpackNotifierPlugin({title: 'Brave-' + env}), new webpack.IgnorePlugin(/^\.\/stores\/appStore$/), new webpack.IgnorePlugin(/^spellchecker/), new webpack.DefinePlugin({ @@ -72,6 +71,10 @@ function config () { fs: 'empty' } } + if (!process.env.DISABLE_WEBPACK_NOTIFIER) { + c.plugins.push(new WebpackNotifierPlugin({title: 'Brave-' + env})) + } + return c } function watchOptions () {