diff options
author | Nolan Lawson <nolan@nolanlawson.com> | 2017-05-07 06:22:30 -0700 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-07 15:22:30 +0200 |
commit | d372068620c708dcfa4500936d90a0e68556068e (patch) | |
tree | 7b549fe00e30847e9755a4e17e5750a7790419ee /config/webpack/production.js | |
parent | 139d18348598465d85726ec3d09789635cb42c74 (diff) |
add source maps for dev/production (#2873)
Diffstat (limited to 'config/webpack/production.js')
-rw-r--r-- | config/webpack/production.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/webpack/production.js b/config/webpack/production.js index 494ccf7ef..261bfdd70 100644 --- a/config/webpack/production.js +++ b/config/webpack/production.js @@ -8,6 +8,9 @@ const CompressionPlugin = require('compression-webpack-plugin') const sharedConfig = require('./shared.js') module.exports = merge(sharedConfig, { + + devtool: 'source-map', // separate sourcemap file, suitable for production + output: { filename: '[name]-[chunkhash].js' }, plugins: [ @@ -19,7 +22,7 @@ module.exports = merge(sharedConfig, { comments: false }, - sourceMap: false + sourceMap: true }), new CompressionPlugin({ asset: '[path].gz[query]', |