mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
Fix source map in webpackDevMiddleware
This commit is contained in:
parent
9021cd8145
commit
2ee6d2bddf
2
nico.js
2
nico.js
@ -31,7 +31,7 @@ exports.ignorefilter = function(filepath, subdir) {
|
||||
};
|
||||
exports.middlewares = [{
|
||||
name: 'webpackDevMiddleware',
|
||||
filter: /antd\.(js|css)$/,
|
||||
filter: /antd\.(js|css)(\.map)?$/,
|
||||
handle: webpackMiddleware(webpackCompiler, {
|
||||
publicPath: '/dist/',
|
||||
lazy: false,
|
||||
|
@ -44,5 +44,7 @@ module.exports = {
|
||||
|
||||
plugins: [
|
||||
new ExtractTextPlugin('[name].css')
|
||||
]
|
||||
],
|
||||
|
||||
devtool: 'source-map'
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user