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