File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments