Download apps/web-ele/vite.config.mts from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 544 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/apps/web-ele/vite.config.mts
- Command line
-
hf download hf://spaces/binhugg3/admin/apps/web-ele/vite.config.mts
-
curl -L -o vite.config.mts https://huggingface.co/spaces/binhugg3/admin/resolve/main/apps/web-ele/vite.config.mts
544 Bytes
| import { defineConfig } from '@vben/vite-config'; | |
| import ElementPlus from 'unplugin-element-plus/vite'; | |
| export default defineConfig(async () => { | |
| return { | |
| application: {}, | |
| vite: { | |
| plugins: [ | |
| ElementPlus({ | |
| format: 'esm', | |
| }), | |
| ], | |
| server: { | |
| proxy: { | |
| '/api': { | |
| changeOrigin: true, | |
| rewrite: (path: string) => path.replace(/^\/api/, ''), | |
| target: 'http://localhost:9999', | |
| ws: true, | |
| }, | |
| }, | |
| }, | |
| }, | |
| }; | |
| }); |