We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f0e6c8 commit 853b39eCopy full SHA for 853b39e
index.js
@@ -209,7 +209,11 @@ module.exports = (api, options) => {
209
.node.set('__dirname', false)
210
.set('__filename', false)
211
mainConfig.output.path(api.resolve(outputDir)).filename('background.js')
212
- if (!args.debug) {
+ if (args.debug) {
213
+ // Enable source maps for debugging
214
+ mainConfig.devtool('source-map')
215
+ } else {
216
+ // Minify for better performance
217
mainConfig.plugin('uglify').use(UglifyJSPlugin, [
218
{
219
parallel: true
0 commit comments