提交 6340b875 编写于 作者: A afc163

update watch config

上级 f5835eec
......@@ -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'",
......
......@@ -43,7 +43,8 @@ module.exports = {
},
plugins: [
new ExtractTextPlugin('[name].css')
new ExtractTextPlugin('[name].css'),
new webpack.NewWatchingPlugin()
],
devtool: '#source-map'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册