Enable creation of sourcemaps

This commit is contained in:
Graham Fairweather 2018-03-05 13:19:27 +01:00
parent c365be4633
commit 71eb889f6b
6 changed files with 187 additions and 109 deletions

View file

@ -4,6 +4,7 @@ const entry = require('./locale');
process.env.NODE_ENV = 'production';
module.exports = {
devtool: 'source-map',
entry,
module: {
rules: [
@ -37,9 +38,8 @@ module.exports = {
}
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
parallel: true,
sourceMap: true,
})
]
};