Use JS source maps for development

[MAILPOET-1752]
This commit is contained in:
Jan Jakeš
2019-02-04 10:18:15 +01:00
committed by Pavel Dohnal
parent 2e7f4d7448
commit b60ba1fce8

View File

@@ -10,6 +10,7 @@ const manifestSeed = {};
// Base config // Base config
const baseConfig = { const baseConfig = {
mode: PRODUCTION_ENV ? 'production' : 'development', mode: PRODUCTION_ENV ? 'production' : 'development',
devtool: PRODUCTION_ENV ? undefined : 'eval-source-map',
cache: true, cache: true,
context: __dirname, context: __dirname,
watchOptions: { watchOptions: {
@@ -57,7 +58,7 @@ const baseConfig = {
}, },
plugins: [ plugins: [
new webpackCleanPlugin([ new webpackCleanPlugin([
'./assets/dist/js/*.*', './assets/dist/js/*',
]), ]),
], ],
module: { module: {