Spaces:
Running
Running
Download vite.config.ts from Ethscriptions/tz: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/spaces/Ethscriptions/tz/resolve/main/vite.config.ts
- Command line
-
hf download hf://spaces/Ethscriptions/tz/vite.config.ts
-
curl -L -o vite.config.ts https://huggingface.co/spaces/Ethscriptions/tz/resolve/main/vite.config.ts
600 Bytes
| import { defineConfig } from 'vite' | |
| import react from '@vitejs/plugin-react' | |
| import { fileURLToPath } from 'node:url' | |
| const root = fileURLToPath(new URL('.', import.meta.url)) | |
| export default defineConfig({ | |
| base: './', | |
| plugins: [react()], | |
| resolve: { alias: { '@': root + 'src' } }, | |
| define: { 'process.env.NODE_ENV': JSON.stringify('production') }, | |
| build: { | |
| target: 'es2022', sourcemap: false, | |
| // Static Space index.html points at production JS. Always build from TSX, not that old bundle. | |
| lib: { entry: root + 'src/main.tsx', formats: ['es'], fileName: () => 'app.js' }, | |
| }, | |
| }) | |