打包改为vite

This commit is contained in:
none
2023-03-23 16:17:50 +08:00
parent 6af892c7e5
commit e7421f67cc
33 changed files with 454 additions and 1778 deletions

16
vite.config.ts Normal file
View File

@@ -0,0 +1,16 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import gzipPlugin from "rollup-plugin-gzip";
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 3000,
},
plugins: [react()],
build: {
rollupOptions: {
plugins: [gzipPlugin()],
},
},
});