mirror of
https://github.com/prymitive/karma
synced 2026-05-11 03:46:48 +00:00
Enable source map generation in UglifyJsPlugin
Looks like it was disabled at some point and depending on the version of webpack it's enabled by default or not: https://github.com/webpack/webpack/issues/2704#issuecomment-228860162 So it was working with 3.3.0 but now fails with 3.4.1, this PR fixes it
This commit is contained in:
@@ -112,7 +112,9 @@ const isDev = (process.env.NODE_ENV === "test");
|
||||
|
||||
// enable production only plugins
|
||||
if (!isDev) {
|
||||
config.plugins.push(new webpack.optimize.UglifyJsPlugin());
|
||||
config.plugins.push(new webpack.optimize.UglifyJsPlugin({
|
||||
sourceMap: true
|
||||
}));
|
||||
config.plugins.push(new webpack.LoaderOptionsPlugin({
|
||||
minimize: true,
|
||||
debug: false,
|
||||
|
||||
Reference in New Issue
Block a user