Fix source map in webpackDevMiddleware

pull/26/head
afc163 10 years ago
parent 9021cd8145
commit 2ee6d2bddf

@ -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…
Cancel
Save