Download code/frontend/apps/web/vite.config.ts from Jiali9/Affect-Atlas: direct link, hf CLI and curl.
- Browser
- Download file 694 Bytes
-
https://huggingface.co/Jiali9/Affect-Atlas/resolve/main/code/frontend/apps/web/vite.config.ts
- Command line
-
hf download hf://Jiali9/Affect-Atlas/code/frontend/apps/web/vite.config.ts
-
curl -L -o vite.config.ts https://huggingface.co/Jiali9/Affect-Atlas/resolve/main/code/frontend/apps/web/vite.config.ts
694 Bytes
| import { defineConfig } from 'vite' | |
| import { tanstackStart } from '@tanstack/react-start/plugin/vite' | |
| import viteReact from '@vitejs/plugin-react' | |
| import tailwindcss from '@tailwindcss/vite' | |
| export default defineConfig(({ mode }) => ({ | |
| resolve: { tsconfigPaths: true }, | |
| preview: { port: 5173, strictPort: true, host: 'localhost' }, | |
| plugins: [ | |
| tailwindcss(), | |
| tanstackStart(mode === 'demo' ? { | |
| pages: [{ path: '/' }, { path: '/home' }, { path: '/demo' }], | |
| prerender: { | |
| enabled: true, | |
| autoStaticPathsDiscovery: false, | |
| autoSubfolderIndex: true, | |
| crawlLinks: false, | |
| failOnError: true, | |
| }, | |
| } : {}), | |
| viteReact(), | |
| ], | |
| })) | |