Browse Source

Fix source map in webpackDevMiddleware

pull/26/head
afc163 10 years ago
parent
commit
2ee6d2bddf
  1. 2
      nico.js
  2. 4
      webpack.config.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,

4
webpack.config.js

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

Loading…
Cancel
Save