feat: enhance package.json with resource filters and compression settings

This commit is contained in:
Soulter
2026-02-08 22:58:52 +08:00
parent eca3ede7b0
commit 96753821b7
2 changed files with 24 additions and 7 deletions
+1
View File
@@ -29,6 +29,7 @@ export default defineConfig({
}
},
build: {
sourcemap: false,
chunkSizeWarningLimit: 1024 * 1024 // Set the limit to 1 MB
},
optimizeDeps: {
+23 -7
View File
@@ -32,23 +32,39 @@
"extraResources": [
{
"from": "resources/backend",
"to": "backend"
"to": "backend",
"filter": [
"**/*",
"!**/*.map"
]
},
{
"from": "resources/webui",
"to": "webui"
"to": "webui",
"filter": [
"**/*",
"!**/*.map"
]
},
{
"from": "assets",
"to": "assets"
"to": "assets",
"filter": [
"**/*",
"!**/*.map"
]
}
],
"files": [
"**/*",
"!resources/backend{,/**}",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}",
"!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
"!**/node_modules/.bin"
"!**/*.map",
"!**/*.d.ts",
"!**/{test,__tests__,tests,powered-test,example,examples}/**"
],
"compression": "maximum",
"electronLanguages": [
"en-US",
"zh-CN"
],
"asar": true,
"directories": {