background.js
This commit is contained in:
parent
6179410604
commit
9f7dc36ce4
@ -78,6 +78,10 @@ module.exports = {
|
||||
// 在electron-builder 22.9.1中,压缩配置应该在build选项中设置
|
||||
builderOptions: {
|
||||
compression: "store", // 等同于--no-compress,不压缩应用
|
||||
// 添加这行配置,强制设置打包后package.json的main字段
|
||||
extraMetadata: {
|
||||
main: "background.js"
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user