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
const baseConfig = {
mode: PRODUCTION_ENV ? 'production' : 'development',
devtool: PRODUCTION_ENV ? undefined : 'eval-source-map',
cache: true,
context: __dirname,
watchOptions: {
@@ -57,7 +58,7 @@ const baseConfig = {
},
plugins: [
new webpackCleanPlugin([
'./assets/dist/js/*.*',
'./assets/dist/js/*',
]),
],
module: {