feat(init): init project

This commit is contained in:
2025-11-16 15:00:14 +08:00
commit 7cc246fbf3
17 changed files with 539 additions and 0 deletions

31
vite.config.ts Normal file
View File

@@ -0,0 +1,31 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwind from "@tailwindcss/vite";
import path from "path";
// https://vite.dev/config/
export default defineConfig({
plugins: [
react({
babel: {
plugins: [["babel-plugin-react-compiler"]],
},
}),
tailwind(),
],
server: {
host: true,
allowedHosts: ["local.kmux.cn"],
proxy: {
"/api": {
target: "http://local.kmux.cn:8080",
changeOrigin: true,
},
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
});