diff --git a/.gitignore b/.gitignore index e166514..af48f09 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,10 @@ node_modules/ dist/ # TypeScript build cache *.tsbuildinfo + +# Generated Vite config output (source is vite.config.ts) +vite.config.js +vite.config.d.ts # Vite and tooling caches .vite/ .cache/ diff --git a/vite.config.d.ts b/vite.config.d.ts deleted file mode 100644 index 340562a..0000000 --- a/vite.config.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: import("vite").UserConfig; -export default _default; diff --git a/vite.config.js b/vite.config.js deleted file mode 100644 index 799b80f..0000000 --- a/vite.config.js +++ /dev/null @@ -1,13 +0,0 @@ -import { defineConfig } from 'vite'; -import vue from '@vitejs/plugin-vue'; -export default defineConfig({ - plugins: [vue()], - server: { - port: 5173, - host: true, - }, - // 让 node_modules 里的 ESM 依赖能直接 work - optimizeDeps: { - include: ['@esotericsoftware/spine-pixi-v7'], - }, -});