From 224eec48c0a4338d0b547dfb198c8dbcddc78ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Delattre?= Date: Fri, 28 Feb 2020 13:52:33 +0100 Subject: [PATCH] Update the source map configuration --- frontend/webpack.config.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/webpack.config.js b/frontend/webpack.config.js index bf4f462..51f8dd0 100644 --- a/frontend/webpack.config.js +++ b/frontend/webpack.config.js @@ -104,11 +104,8 @@ const config = { ], resolve: { extensions: [".js"] - } + }, + devtool: mode === "production" ? "source-map" : "inline-source-map" }; -if (process.env.NODE_ENV !== "production") { - config.devtool = "#cheap-module-source-map"; -} - module.exports = config;