update watch config

This commit is contained in:
afc163 2015-06-15 15:52:31 +08:00
parent f5835eec78
commit 6340b875b5
2 changed files with 3 additions and 2 deletions

View File

@ -44,7 +44,7 @@
},
"scripts": {
"build": "npm run clean && webpack && nico build",
"start": "npm run clean && concurrent -r 'webpack -w --watch-aggregate-timeout 0' 'nico server --watch'",
"start": "npm run clean && concurrent -r 'webpack -w' 'nico server --watch'",
"clean": "rm -rf _site",
"deploy": "npm run build && gh-pages -d _site -b gh-pages",
"lint": "eslint components index.js --ext '.js,.jsx'",

View File

@ -43,7 +43,8 @@ module.exports = {
},
plugins: [
new ExtractTextPlugin('[name].css')
new ExtractTextPlugin('[name].css'),
new webpack.NewWatchingPlugin()
],
devtool: '#source-map'