mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
fix req.path error in webpack/webpack-dev-middleware#79
This commit is contained in:
parent
68c7d3cdaa
commit
52ca8c1279
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…
Reference in New Issue
Block a user