From 07f26078696e52ea94f897dc0e8287621e64ae34 Mon Sep 17 00:00:00 2001 From: hensm Date: Tue, 23 Feb 2021 02:33:35 +0000 Subject: [PATCH] Fix webpack production builds --- ext/bin/build.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/bin/build.js b/ext/bin/build.js index 5aba88b..7975542 100644 --- a/ext/bin/build.js +++ b/ext/bin/build.js @@ -4,7 +4,7 @@ const fs = require("fs-extra"); const path = require("path"); const minimist = require("minimist"); const webpack = require("webpack"); -const webExt = require("web-ext").default; +const webExt = require("web-ext"); const { ROOT , INCLUDE_PATH @@ -68,9 +68,9 @@ const webpackConfig = require(`${ROOT}/webpack.config.js`)({ // Add mode to config webpackConfig.mode = argv.mode; -webpackConfig.devtool = argv.mode === "production" - ? "none" - : "source-map"; +if (argv.mode !== "production") { + webpackConfig.devtool = "source-map"; +} // Clean