Project

General

Profile

« Previous | Next » 

Revision d956de95

Added by Tomáš Strachota over 5 years ago

Fixes #24958 - allow sourcemaps in production

View differences:

config/webpack.config.js
uglifyOptions: {
compress: { warnings: false },
},
sourceMap: false
sourceMap: true
}),
new SimpleNamedModulesPlugin(),
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new CompressionPlugin()
);
config.devtool = 'source-map';
} else {
config.plugins.push(
new webpack.HotModuleReplacementPlugin() // Enable HMR

Also available in: Unified diff