Add sourcemaps to production build

This commit is contained in:
Cássio Zen 2016-12-20 19:36:05 -02:00
parent 5cc17c05e5
commit 93e4d493e4

View File

@ -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',
});