File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import react from '@vitejs/plugin-react';
33import { VitePWA } from 'vite-plugin-pwa' ;
44import tailwindcss from '@tailwindcss/vite' ;
55import { fileURLToPath , URL } from 'url' ;
6- import compression from 'vite-plugin-compression' ;
6+ import viteCompression from 'vite-plugin-compression' ;
77
88// https://vite.dev/config/
99
@@ -16,13 +16,9 @@ export default defineConfig(({ mode }) => {
1616 global : 'window' , // global을 window로 설정
1717 } ,
1818 plugins : [
19- compression ( {
20- algorithm : 'brotliCompress' , // Brotli 적용
21- ext : '.br' , // Brotli 확장자 사용
22- } ) ,
23- compression ( {
24- algorithm : 'gzip' , // Gzip도 적용 (백업용)
25- ext : '.gz' ,
19+ viteCompression ( {
20+ algorithm : 'gzip' ,
21+ ext : 'gz' ,
2622 } ) ,
2723 react ( ) ,
2824 tailwindcss ( ) ,
You can’t perform that action at this time.
0 commit comments