Browse Source

update webpack dev config

pull/4/head
afc163 10 years ago
parent
commit
9c3dc4ba3c
  1. 6
      nico.js
  2. 2
      package.json

6
nico.js

@ -31,7 +31,8 @@ exports.writers = [
exports.middlewares = [{
name: 'webpack',
filter: /index\.js/,
handle: webpackMiddleware(webpack(require('./webpack.config')), {
handle: function(req, res, next) {
return webpackMiddleware(webpack(require('./webpack.config')), {
// all options optional
noInfo: false,
@ -51,6 +52,7 @@ exports.middlewares = [{
colors: true
}
// options for formating the statistics
})
})(req, res, next);
}
}];
// end settings }}

2
package.json

@ -27,7 +27,7 @@
"webpack-dev-middleware": "~1.0.11"
},
"scripts": {
"build": "npm run clean && nico build",
"build": "npm run clean && webpack && nico build",
"start": "npm run clean && nico server --watch",
"clean": "rm -rf _site",
"deploy": "npm run build && gh-pages -d _site -b master"

Loading…
Cancel
Save