mirror of
https://github.com/prymitive/karma
synced 2026-05-13 03:56:59 +00:00
Merge pull request #165 from cloudflare/source-maps
Enable source map generation in UglifyJsPlugin
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