first commit

This commit is contained in:
zhujun
2026-05-19 17:08:29 +08:00
commit 93480386d9
270 changed files with 85843 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// @ts-expect-error: vite-plugin-eslint 缺少类型定义
import eslint from "vite-plugin-eslint";
import path from "path";
import checker from "vite-plugin-checker";
// https://vite.dev/config/
export default defineConfig({
base: "/ai-agent-react/",
server: {
port: 3000,
},
plugins: [
react({}),
eslint({
failOnError: false, // 不阻塞开发
include: ["src/**/*.{js,jsx,ts,tsx}"],
}),
checker({
typescript: {
tsconfigPath: "./tsconfig.app.json",
},
enableBuild: true,
terminal: true,
}),
],
css: { preprocessorOptions: { scss: {} } },
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});