diff --git a/nico.js b/nico.js index d308388fb3..96e469ad15 100644 --- a/nico.js +++ b/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, diff --git a/webpack.config.js b/webpack.config.js index 9b7e00c15b..8cc2cf7253 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -44,5 +44,7 @@ module.exports = { plugins: [ new ExtractTextPlugin('[name].css') - ] + ], + + devtool: 'source-map' };