diff --git a/webpack.config.js b/webpack.config.js index bc4e9945f0..7c901c83ab 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -83,9 +83,6 @@ const plugins = [ { from: "./src/content/autofill.css", to: "content" }, ], }), - new webpack.SourceMapDevToolPlugin({ - include: ["popup/main.js", "background.js"], - }), new MiniCssExtractPlugin({ filename: "[name].css", chunkFilename: "chunk-[id].css", @@ -110,7 +107,7 @@ const plugins = [ const config = { mode: ENV, - devtool: false, + devtool: ENV === "development" ? "eval-source-map" : "source-map", entry: { "popup/polyfills": "./src/popup/polyfills.ts", "popup/main": "./src/popup/main.ts", @@ -124,7 +121,7 @@ const config = { "notification/bar": "./src/notification/bar.js", }, optimization: { - minimize: false, + minimize: true, splitChunks: { cacheGroups: { commons: {