buster/apps/web-tss/vite.config.ts

34 lines
821 B
TypeScript

import tailwindcss from '@tailwindcss/vite';
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
import viteReact from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import checker from 'vite-plugin-checker';
import viteTsConfigPaths from 'vite-tsconfig-paths';
export default defineConfig(({ command }) => {
const isServe = command === 'serve';
return {
server: {
port: 3000,
},
plugins: [
// this is the plugin that enables path aliases
viteTsConfigPaths({
projects: ['./tsconfig.json'],
}),
tailwindcss(),
tanstackStart({
customViteReactPlugin: true,
}),
viteReact(),
isServe
? checker({
typescript: true,
biome: true,
})
: undefined,
],
};
});