From c0cc7dbe783ba507f135ba89225f12d12c7db2e3 Mon Sep 17 00:00:00 2001 From: Martin Reinhardt Date: Wed, 26 Oct 2016 21:32:47 +0200 Subject: [PATCH] fix(#11): workaround for windows notification error --- etc/webpack.common.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/etc/webpack.common.js b/etc/webpack.common.js index 5cacff3..6739500 100755 --- a/etc/webpack.common.js +++ b/etc/webpack.common.js @@ -275,12 +275,7 @@ var config = { 'NODE_ENV': JSON.stringify(ENV), 'HMR': false } - }), - /** - * Plugin: NotifierPlugin - * See: https://github.com/Turbo87/webpack-notifier#usage - */ - new WebpackNotifierPlugin() + }) ], /* @@ -299,6 +294,16 @@ var config = { }; +if( os.platform() !== 'win32') { + // FIXME, see https://github.com/holisticon/angular-common/issues/11 + config.plugins.push( + /** + * Plugin: NotifierPlugin + * See: https://github.com/Turbo87/webpack-notifier#usage + */ + new WebpackNotifierPlugin()); +} + /* * Plugin: HtmlWebpackPlugin * Description: Simplifies creation of HTML files to serve your webpack bundles.