refactor(server): 按照官方推荐顺序重排 Vite 插件并清理冗余配置

This commit is contained in:
2026-02-07 22:13:16 +08:00
parent 70b5d27493
commit 2048f73155

View File

@@ -10,24 +10,21 @@ export default defineConfig({
clearScreen: false,
plugins: [
tanstackDevtools(),
nitro({
preset: 'bun',
serveStatic: 'inline',
}),
tsconfigPaths(),
tailwindcss(),
tsconfigPaths(),
tanstackStart(),
react({
babel: {
plugins: ['babel-plugin-react-compiler'],
},
}),
nitro({
preset: 'bun',
serveStatic: 'inline',
}),
],
server: {
port: 3000,
strictPort: true,
watch: {
ignored: ['**/src-tauri/**'],
},
},
})