There was an error while loading. Please reload this page.
1 parent 0c56691 commit 4b8c65bCopy full SHA for 4b8c65b
vite.config.js
@@ -1,11 +1,12 @@
1
import { defineConfig } from 'vite';
2
import react from '@vitejs/plugin-react';
3
+import compression from 'vite-plugin-compress';
4
5
export default defineConfig(() => {
6
return {
7
build: {
8
outDir: 'dist',
9
},
- plugins: [react()],
10
+ plugins: [react(),compression({ algorithm: 'gzip' })],
11
};
12
});
0 commit comments