Skip to content

Commit 4b8c65b

Browse files
committed
Add gzip compression plugin to Vite configuration
1 parent 0c56691 commit 4b8c65b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎vite.config.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { defineConfig } from 'vite';
22
import react from '@vitejs/plugin-react';
3+
import compression from 'vite-plugin-compress';
34

45
export default defineConfig(() => {
56
return {
67
build: {
78
outDir: 'dist',
89
},
9-
plugins: [react()],
10+
plugins: [react(),compression({ algorithm: 'gzip' })],
1011
};
1112
});

0 commit comments

Comments
 (0)