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({