Remove source maps from production builds

This commit is contained in:
hensm
2019-04-12 22:40:55 +01:00
committed by Matt Hensman
parent 5dd91f3ee0
commit 0b494fa908
2 changed files with 9 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ const webpackConfig = require(`${ROOT}/webpack.config.js`)({
// Add mode to config
webpackConfig.mode = argv.mode;
webpackConfig.devtool = argv.mode === "production"
? "source-map"
? "none"
: "eval";