diff --git a/webpack.prod.js b/webpack.prod.js index 382cea96..8a57929a 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -42,6 +42,15 @@ module.exports = merge.smart(require('./webpack.base.js'), { // Extract CSS new ExtractTextPlugin('[name].css', { allChunks: true }), + + // During beta phase, generate source maps for better errors + new webpack.SourceMapDevToolPlugin({ + // asset matching + test: /\.js?$/, + exclude: /node_modules/, + + // file and reference + filename: '[file].map', + }), ], - devTool: 'source-map', });