From 90ff7b0997b3463edc00bb4d459b808a0aae960a Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Fri, 6 Jul 2018 00:22:05 +0200 Subject: [PATCH] Add devtool option in webpack config --- webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.js b/webpack.config.js index 504714f34..9184b86bf 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -39,6 +39,7 @@ module.exports = env => { output: output, plugins: plugins, mode: isProd ? 'production' : 'development', + devtool: isProd ? 'source-map' : (!env ? 'cheap-module-eval-source-map' : false), module: { rules: [{ test: /\/index\.js$/,