Enable creation of sourcemaps
This commit is contained in:
parent
c365be4633
commit
71eb889f6b
6 changed files with 187 additions and 109 deletions
|
@ -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,
|
||||
})
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue