From d16b35ed0b6671e6e8a2b21a77109cd725e82bae Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 14 Mar 2019 22:58:12 +0000 Subject: [PATCH] Remove sourcemaps for production --- scripts/webpack.client.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/webpack.client.config.js b/scripts/webpack.client.config.js index 5dd6cbe1a..681cffdb4 100644 --- a/scripts/webpack.client.config.js +++ b/scripts/webpack.client.config.js @@ -11,7 +11,7 @@ const prod = process.env.NODE_ENV === "production" || process.env.CI === "true"; module.exports = (options = {}) => merge( require("./webpack.general.config")(options), { - devtool: prod ? "source-map" : "cheap-module-eval-source-map", + devtool: prod ? "none" : "cheap-module-eval-source-map", mode: prod ? "production" : "development", entry: prod ? options.entry : [ "webpack-hot-middleware/client?reload=true&quiet=true",