Spaces:
Running
Running
Download source/vite.config.js from Segizu/rotoscopia-lab: direct link, hf CLI and curl.
- Browser
- Download file 582 Bytes
-
https://huggingface.co/spaces/Segizu/rotoscopia-lab/resolve/main/source/vite.config.js
- Command line
-
hf download hf://spaces/Segizu/rotoscopia-lab/source/vite.config.js
-
curl -L -o vite.config.js https://huggingface.co/spaces/Segizu/rotoscopia-lab/resolve/main/source/vite.config.js
582 Bytes
| import { defineConfig } from 'vite'; | |
| // Same isolation headers the Space sets via README `custom_headers` (enables multi-threaded WASM). | |
| const headers = { 'Cross-Origin-Opener-Policy': 'same-origin', 'Cross-Origin-Embedder-Policy': 'credentialless' }; | |
| export default defineConfig({ | |
| base: './', | |
| build: { outDir: 'dist', target: 'es2022', assetsInlineLimit: 0, chunkSizeWarningLimit: 2000 }, | |
| worker: { format: 'es' }, | |
| server: { host: '127.0.0.1', port: 43134, headers }, | |
| preview: { host: '127.0.0.1', port: 43135, headers }, | |
| test: { include: ['tests/**/*.test.js'] }, | |
| }); | |