Skip to content

Commit

Permalink
Updating prod.config.js for webpack
Browse files Browse the repository at this point in the history
Commenting out uglify plugin, adding chrome error workaround
  • Loading branch information
smoke-indica committed Nov 15, 2020
1 parent cba28ff commit bf9376e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion webpack/prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default {
TYPED_ARRAY_SUPPORT: JSON.stringify(false)
}
}),
/*
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
Expand All @@ -37,6 +38,14 @@ export default {
comments: false
}
}),
...baseConfig.plugins
*/
...baseConfig.plugins,
// Fix window.onerror
// See https://github.com/webpack/webpack/issues/5681#issuecomment-345861733
new webpack.SourceMapDevToolPlugin({
module: true,
columns: false,
moduleFilenameTemplate: info => { return `${info.resourcePath}?${info.loaders}` }
})
]
};

0 comments on commit bf9376e

Please sign in to comment.