fix: node_modules 排除 glob 需要 **/ 前缀才生效
上次提交(d512ad4)里 '!node_modules/onnxruntime-web/**' 这种不带 **/ 前缀的排除规则在真机验证时基本没生效(体积没降)。electron-builder 自动收录 node_modules 的内部匹配逻辑按完整相对路径比对,需要写成 '!**/node_modules/onnxruntime-web/**' 才能正确排除。真机重新打包验证: node_modules 从 597M 降到 373M,符合预期。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
d512ad41f9
commit
33ce4ec09c
@ -37,12 +37,12 @@ const config: Configuration = {
|
||||
files: [
|
||||
'out/**/*',
|
||||
'resources/icon.png',
|
||||
'!node_modules/onnxruntime-web/**',
|
||||
'!node_modules/naive-ui/**',
|
||||
'!node_modules/date-fns/**',
|
||||
'!node_modules/highlight.js/**',
|
||||
'!node_modules/lodash/**',
|
||||
'!node_modules/lodash-es/**'
|
||||
'!**/node_modules/onnxruntime-web/**',
|
||||
'!**/node_modules/naive-ui/**',
|
||||
'!**/node_modules/date-fns/**',
|
||||
'!**/node_modules/highlight.js/**',
|
||||
'!**/node_modules/lodash/**',
|
||||
'!**/node_modules/lodash-es/**'
|
||||
],
|
||||
asarUnpack: [
|
||||
'node_modules/@lancedb/**',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user