ManimCat / frontend /vite.config.ts
Bin29's picture
Sync from main: e764154 feat(plot-skill): add math-exam-diagram SKILL.md for exam-style math figures
abcf568
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
base: '/',
plugins: [react()],
test: {
environment: 'jsdom',
setupFiles: './src/test/setup.ts',
css: false,
coverage: {
provider: 'v8',
reporter: ['text', 'html'],
},
},
build: {
outDir: '../public',
emptyOutDir: true,
rollupOptions: {
output: {
assetFileNames: 'assets/[name]-[hash][extname]',
chunkFileNames: 'assets/[name]-[hash].js',
entryFileNames: 'assets/[name]-[hash].js',
},
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
},
'/videos': {
target: 'http://localhost:3000',
changeOrigin: true,
},
'/images': {
target: 'http://localhost:3000',
changeOrigin: true,
},
},
},
})