Skip to content

Commit ca70ea8

Browse files
committed
update regex fixer for webpack config additions (#7)
1 parent 38ef2e0 commit ca70ea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function setWebpackOptions (api, options) {
121121
return regex.replace('\\\\', '\\')
122122
}
123123
let stringConfig = JSON.stringify(config, replacer).replace(
124-
/("__REGEXP)(.+?)(")(?=,)/,
124+
/("__REGEXP)(.+?)(")(?=,?)/g,
125125
toRegex
126126
)
127127
if (!fs.existsSync(api.resolve('.') + '/dist_electron')) {

0 commit comments

Comments
 (0)