Add webpack build notifications in dev

This commit is contained in:
6ea86b96 2017-05-05 11:28:30 +07:00
parent ca2c678301
commit d7f84caaa4
No known key found for this signature in database
GPG key ID: B282D183E4931E8F
2 changed files with 6 additions and 0 deletions

View file

@ -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"
}
}

View file

@ -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: [
{