feat: enhance package.json with resource filters and compression settings
This commit is contained in:
@@ -29,6 +29,7 @@ export default defineConfig({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
|
sourcemap: false,
|
||||||
chunkSizeWarningLimit: 1024 * 1024 // Set the limit to 1 MB
|
chunkSizeWarningLimit: 1024 * 1024 // Set the limit to 1 MB
|
||||||
},
|
},
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
|
|||||||
+23
-7
@@ -32,23 +32,39 @@
|
|||||||
"extraResources": [
|
"extraResources": [
|
||||||
{
|
{
|
||||||
"from": "resources/backend",
|
"from": "resources/backend",
|
||||||
"to": "backend"
|
"to": "backend",
|
||||||
|
"filter": [
|
||||||
|
"**/*",
|
||||||
|
"!**/*.map"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": "resources/webui",
|
"from": "resources/webui",
|
||||||
"to": "webui"
|
"to": "webui",
|
||||||
|
"filter": [
|
||||||
|
"**/*",
|
||||||
|
"!**/*.map"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": "assets",
|
"from": "assets",
|
||||||
"to": "assets"
|
"to": "assets",
|
||||||
|
"filter": [
|
||||||
|
"**/*",
|
||||||
|
"!**/*.map"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"files": [
|
"files": [
|
||||||
"**/*",
|
"**/*",
|
||||||
"!resources/backend{,/**}",
|
"!**/*.map",
|
||||||
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}",
|
"!**/*.d.ts",
|
||||||
"!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
|
"!**/{test,__tests__,tests,powered-test,example,examples}/**"
|
||||||
"!**/node_modules/.bin"
|
],
|
||||||
|
"compression": "maximum",
|
||||||
|
"electronLanguages": [
|
||||||
|
"en-US",
|
||||||
|
"zh-CN"
|
||||||
],
|
],
|
||||||
"asar": true,
|
"asar": true,
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|||||||
Reference in New Issue
Block a user