Add sourcemaps to production build
This commit is contained in:
parent
5cc17c05e5
commit
93e4d493e4
@ -42,6 +42,15 @@ module.exports = merge.smart(require('./webpack.base.js'), {
|
|||||||
|
|
||||||
// Extract CSS
|
// Extract CSS
|
||||||
new ExtractTextPlugin('[name].css', { allChunks: true }),
|
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',
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user