Skip to content

Commit

Permalink
feat: add gzip compress
Browse files Browse the repository at this point in the history
  • Loading branch information
kcwww committed Apr 20, 2024
1 parent cf11554 commit feea436
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions front/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vite';
//import mkcert from 'vite-plugin-mkcert';
import { compression } from 'vite-plugin-compression2';

export default defineConfig({
plugins: [react(),
// mkcert(),
compression({
include : /\.(js|css|html|svg|json|ico|eot|otf|ttf|woff|woff2|mp3)$/i,
threshold: 1400,
})
],
server: {
host: '0.0.0.0',
Expand Down

0 comments on commit feea436

Please sign in to comment.