diff options
author | n-peugnet <n.peugnet@free.fr> | 2019-11-07 14:02:13 +0100 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2019-11-07 15:39:49 +0100 |
commit | f43d03393babc939756c9f5581343913b02c7298 (patch) | |
tree | 5eb238837114fc3a05c9dcf258cf1108f6bc8047 /webpack.config.js | |
parent | a1a97e168a5d3c802f12e7351b13dab0a4f68db2 (diff) | |
download | wcms-f43d03393babc939756c9f5581343913b02c7298.tar.gz wcms-f43d03393babc939756c9f5581343913b02c7298.zip |
build: ENV prod enhancements
- fix: prod mode not working with target-specific ENV variable
- use another sourcemap mode in dev mode
- generate souremap files in prod mode
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index b4a445a..1293e7e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,7 +5,7 @@ module.exports = (env) => { return { // Environment dependent mode: env == 'dev' ? 'development' : 'production', - devtool: env == 'dev' ? 'inline-source-map' : 'none', + devtool: env == 'dev' ? 'cheap-eval-source-map' : 'hidden-source-map', stats: env == 'dev' ? {} : { warnings: false }, // Constant |