This commit is contained in:
afc163 2016-03-25 15:13:39 +08:00
parent 68c7d3cdaa
commit 52ca8c1279

View File

@ -93,6 +93,7 @@ exports.middlewares = [
name: 'webpackDevMiddleware',
filter: /\.(js|css|json)(\.map)?(\?.*)?$/,
handle: function(req, res, next) {
req.path = req.path || req.url;
handler = handler || webpackMiddleware(webpackCompiler, {
publicPath: webpackConfig.output.publicPath,
lazy: false,