From dcfa24d37c8ca397112225c6daa46b00c35316d3 Mon Sep 17 00:00:00 2001 From: abhijithvijayan <34790378+abhijithvijayan@users.noreply.github.com> Date: Fri, 17 Apr 2020 16:32:03 +0530 Subject: [PATCH] fix(29): source mapping issue --- webpack.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 7e41097..5940cb9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -41,6 +41,8 @@ const getExtensionFileType = (browser) => { }; module.exports = { + devtool: false, // https://github.com/webpack/webpack/issues/1194#issuecomment-560382342 + mode: nodeEnv, entry: { @@ -122,7 +124,11 @@ module.exports = { plugins: [ new webpack.ProgressPlugin(), + // Generate manifest.json new WextManifestWebpackPlugin(), + // Generate sourcemaps + new webpack.SourceMapDevToolPlugin({filename: false}), + // Remove style entries js bundle new FixStyleOnlyEntriesPlugin({silent: true}), new webpack.EnvironmentPlugin(['NODE_ENV', 'TARGET_BROWSER']), new CleanWebpackPlugin({