set webpack-dev-middleware lazy false because it is fast a lot

This commit is contained in:
afc163 2015-08-18 16:55:25 +08:00
parent 542883515a
commit 52b32e2ec6

View File

@ -67,7 +67,11 @@ exports.middlewares = [
handle: function(req, res, next) {
handler = handler || webpackMiddleware(webpackCompiler, {
publicPath: '/dist/',
lazy: true,
lazy: false,
watchOptions: {
aggregateTimeout: 300,
poll: true
},
stats: {
hash: false,
cached: false,