fix(Vercel Deploy): minify

This commit is contained in:
ShareVB committed 2026-03-07 18:47:15 +01:00
1 parent e478da7d31
commit 87f7604d80
1 file changed
+2 -2
+2 -2
View File
@@ -64,7 +64,7 @@ export default defineConfig({
VitePWA({
registerType: 'autoUpdate',
workbox: {
globPatterns: (process.env.VITE_VERCEL_DEPLOY ? ["**\/*.{css,html}"] : ["**\/*.{js,wasm,css,html}"]),
globPatterns: (process.env.VITE_VERCEL_DEPLOY ? ['**\/*.{css,html}'] : ['**\/*.{js,wasm,css,html}']),
maximumFileSizeToCacheInBytes: 25 * 1024 ** 2,
},
strategies: 'generateSW',
@@ -144,7 +144,7 @@ export default defineConfig({
build: {
target: 'esnext',
// sourcemap: !process.env.VERCEL,
minify: !process.env.VERCEL,
// minify: !process.env.VERCEL,
reportCompressedSize: !process.env.VERCEL,
// cssMinify: false,
// modulePreload: false,