mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 15:44:21 +00:00
Fix generating compressed assets
This commit is contained in:
12
app/package-lock.json
generated
12
app/package-lock.json
generated
@@ -56,7 +56,7 @@
|
||||
"sass": "^1.80.4",
|
||||
"typescript": "^5.8.2",
|
||||
"vite": "^6.4.1",
|
||||
"vite-plugin-compression2": "^1.3.0",
|
||||
"vite-plugin-compression2": "^2.3.1",
|
||||
"vitest": "^3.1.4"
|
||||
}
|
||||
},
|
||||
@@ -9794,15 +9794,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/vite-plugin-compression2": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/vite-plugin-compression2/-/vite-plugin-compression2-1.3.0.tgz",
|
||||
"integrity": "sha512-/cYzISoYOo/SwPUBReS1E02a8eNTpQm8+lQUBj5NNGxuq4iZ3JOfWExUlobhVhPMJuejD7dipT+cMLbaWsMbdw==",
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/vite-plugin-compression2/-/vite-plugin-compression2-2.3.1.tgz",
|
||||
"integrity": "sha512-bnhLTsurtvOiiP6EMISIKVsOMCeTAjE6FJbyqQus3W4mtAxF7pCuC4puUIAiCgNs98tOCpqo6GIXJXTLufzIaw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"workspaces": [
|
||||
"example",
|
||||
"e2e/*"
|
||||
],
|
||||
"dependencies": {
|
||||
"@rollup/pluginutils": "^5.1.0",
|
||||
"tar-mini": "^0.2.0"
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
"sass": "^1.80.4",
|
||||
"typescript": "^5.8.2",
|
||||
"vite": "^6.4.1",
|
||||
"vite-plugin-compression2": "^1.3.0",
|
||||
"vite-plugin-compression2": "^2.3.1",
|
||||
"vitest": "^3.1.4"
|
||||
},
|
||||
"browserslist": {
|
||||
|
||||
@@ -11,7 +11,10 @@ export default defineConfig(({ mode }) => ({
|
||||
react({
|
||||
include: ['**/*.tsx', '**/*.ts', '**/*.jsx', '**/*.js'],
|
||||
}),
|
||||
compression(),
|
||||
compression({
|
||||
threshold: 1024, // Only compress files > 1KB
|
||||
deleteOriginalAssets: false, // Keep original files
|
||||
}),
|
||||
],
|
||||
|
||||
root: 'src',
|
||||
|
||||
Reference in New Issue
Block a user