Browse Source

fix req.path error in webpack/webpack-dev-middleware#79

pull/1274/merge
afc163 9 years ago
parent
commit
52ca8c1279
  1. 1
      nico.js

1
nico.js

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

Loading…
Cancel
Save