From d7f84caaa4f953cdbf6f91fce797dbeaa5732076 Mon Sep 17 00:00:00 2001 From: 6ea86b96 <6ea86b96@gmail.com> Date: Fri, 5 May 2017 11:28:30 +0700 Subject: [PATCH] Add webpack build notifications in dev --- ui/package.json | 1 + ui/webpack.dev.config.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ui/package.json b/ui/package.json index a52366c8c..a8c1bf32c 100644 --- a/ui/package.json +++ b/ui/package.json @@ -54,6 +54,7 @@ "node-sass": "^3.13.0", "webpack": "^1.13.3", "webpack-dev-server": "^2.4.4", + "webpack-notifier": "^1.5.0", "webpack-target-electron-renderer": "^0.4.0" } } diff --git a/ui/webpack.dev.config.js b/ui/webpack.dev.config.js index cb284e233..cc5372370 100644 --- a/ui/webpack.dev.config.js +++ b/ui/webpack.dev.config.js @@ -1,4 +1,6 @@ const path = require('path'); +const WebpackNotifierPlugin = require('webpack-notifier') + const appPath = path.resolve(__dirname, 'js'); const PATHS = { @@ -21,6 +23,9 @@ module.exports = { root: appPath, extensions: ['', '.js', '.jsx', '.css'], }, + plugins: [ + new WebpackNotifierPlugin(), + ], module: { preLoaders: [ {