Skip to content

Commit 1c3d193

Browse files
committed
refactor: import 변경
1 parent 26786b1 commit 1c3d193

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

vite.config.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import react from '@vitejs/plugin-react';
33
import { VitePWA } from 'vite-plugin-pwa';
44
import tailwindcss from '@tailwindcss/vite';
55
import { 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(),

0 commit comments

Comments
 (0)