fix(29): source mapping issue

This commit is contained in:
abhijithvijayan 2020-04-17 16:32:03 +05:30
parent 9a8f575867
commit dcfa24d37c

View File

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