Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 278300e

Browse files
committed
Disable source map files from production
coz MDN don't like
1 parent 8fcd445 commit 278300e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const webpack = require('webpack');
44
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
55

66
module.exports = {
7-
devtool: 'source-map',
87
entry: {
98
content: './src/content',
109
background: './src/background',
@@ -45,4 +44,6 @@ if (process.env.NODE_ENV === 'production') {
4544
}
4645
})
4746
);
47+
} else {
48+
module.exports.devtool = 'source-map';
4849
}

0 commit comments

Comments
 (0)