Fix source map in webpackDevMiddleware

This commit is contained in:
afc163 2015-06-16 20:10:30 +08:00
parent 9021cd8145
commit 2ee6d2bddf
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -44,5 +44,7 @@ module.exports = {
plugins: [
new ExtractTextPlugin('[name].css')
]
],
devtool: 'source-map'
};