Skip to content

Commit

Permalink
chore: gzip을 지원하는 의존성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkkkk committed Aug 21, 2024
1 parent ce0c76d commit 07caf39
Show file tree
Hide file tree
Showing 3 changed files with 302 additions and 41 deletions.
4 changes: 3 additions & 1 deletion Caecae/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"jest": "^29.7.0",
"terser-brunch": "^4.1.0",
"ts-jest": "^29.2.3",
"typescript": "^5.5.4",
"vite": "^5.4.0"
"vite": "^5.4.0",
"vite-plugin-compression": "^0.5.1"
}
}
10 changes: 9 additions & 1 deletion Caecae/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
import { defineConfig } from 'vite'
import path from 'path';
import react from '@vitejs/plugin-react'
import viteCompression from 'vite-plugin-compression';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [
react(),
viteCompression({ // Gzip 압축 활성화
algorithm: 'gzip',
}),],
resolve: {
alias: {
'@assets': path.resolve(__dirname, './public/assets'),
},
},
build: {
minify: 'terser',
},
})
Loading

0 comments on commit 07caf39

Please sign in to comment.