We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 162f6c1 commit 3b5a465Copy full SHA for 3b5a465
1 file changed
webpack.config.js
@@ -13,15 +13,14 @@ const entry = {
13
'popup/index': [ROOT + '/src/popup/index'],
14
};
15
16
-module.exports = {
+const config = {
17
entry: entry,
18
mode: mode,
19
output: {
20
path: ROOT + '/chrome',
21
filename: '[name].bundle.js',
22
sourceMapFilename: '[name].bundle.map.js',
23
},
24
- devtool: 'cheap-module-source-map',
25
module: {
26
rules: [
27
{
@@ -86,3 +85,9 @@ module.exports = {
86
85
}),
87
],
88
+
89
+if (mode === 'development') {
90
+ config.devtool = 'cheap-module-source-map'
91
+}
92
93
+module.exports = config;
0 commit comments