mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
fix(Vercel Deploy): minify
This commit is contained in:
1 parent
e478da7d31
commit
87f7604d80
1 file changed
+2
-2
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user