Skip to content

Commit 6c10f4f

Browse files
committed
remove unnecessary sourcemap setup in main process webpack config
1 parent 95b957c commit 6c10f4f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ module.exports = (api, options) => {
3838
const mainConfig = new Config()
3939
mainConfig
4040
.mode('production')
41-
.devtool('source-map')
4241
.target('electron-main')
4342
.node.set('__dirname', false)
4443
.set('__filename', false)
@@ -47,8 +46,7 @@ module.exports = (api, options) => {
4746
.filename('background.js')
4847
mainConfig.plugin('uglify').use(UglifyJSPlugin, [
4948
{
50-
parallel: true,
51-
sourceMap: true
49+
parallel: true
5250
}
5351
])
5452
mainConfig
@@ -132,15 +130,13 @@ module.exports = (api, options) => {
132130
const mainConfig = new Config()
133131
mainConfig
134132
.mode('development')
135-
.devtool('source-map')
136133
.target('electron-main')
137134
.node.set('__dirname', false)
138135
.set('__filename', false)
139136
mainConfig.output.path(api.resolve(outputDir)).filename('background.js')
140137
mainConfig.plugin('uglify').use(UglifyJSPlugin, [
141138
{
142-
parallel: true,
143-
sourceMap: true
139+
parallel: true
144140
}
145141
])
146142
mainConfig

0 commit comments

Comments
 (0)