From b60ba1fce87c75aaabf20267b2c8ded7b43ce22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jakes=CC=8C?= Date: Mon, 4 Feb 2019 10:18:15 +0100 Subject: [PATCH] Use JS source maps for development [MAILPOET-1752] --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 56cc9d13db..9c41aeb10e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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: {