Spaces:
Running
Running
Download frontends/react/vite.config.ts from nhamid289/optimization-dev: direct link, hf CLI and curl.
- Browser
- Download file 581 Bytes
-
https://huggingface.co/spaces/nhamid289/optimization-dev/resolve/main/frontends/react/vite.config.ts
- Command line
-
hf download hf://spaces/nhamid289/optimization-dev/frontends/react/vite.config.ts
-
curl -L -o vite.config.ts https://huggingface.co/spaces/nhamid289/optimization-dev/resolve/main/frontends/react/vite.config.ts
581 Bytes
| import { defineConfig } from 'vite' | |
| import react from '@vitejs/plugin-react' | |
| import tailwindcss from '@tailwindcss/vite' | |
| // https://vite.dev/config/ | |
| export default defineConfig({ | |
| plugins: [ | |
| react(), | |
| tailwindcss(), | |
| ], | |
| // @elvis/ui is linked locally; use a single copy of its peer dependencies | |
| resolve: { | |
| dedupe: ["react", "react-dom", "lucide-react"], | |
| }, | |
| // Let the dev server read files (e.g. fonts) from elvis-code/packages | |
| server: { | |
| fs: { | |
| allow: ["../../../.."], | |
| }, | |
| }, | |
| build: { | |
| outDir: "../../dist", | |
| emptyOutDir: true, | |
| } | |
| }) | |