Spaces:
Sleeping
Sleeping
File size: 730 Bytes
eceb7aa 0121296 aca7242 0121296 aca7242 0121296 eceb7aa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 7860,
host: '0.0.0.0',
allowedHosts: ["saq1b-glif-lora-autocaption.hf.space"]
},
build: {
rollupOptions: {
output: {
manualChunks: {
'chakra': ['@chakra-ui/react', '@emotion/react', '@emotion/styled', 'framer-motion'],
'utils': ['jszip', 'file-saver', 'axios']
}
}
},
chunkSizeWarningLimit: 1000
},
optimizeDeps: {
include: ['@chakra-ui/react', '@emotion/react', '@emotion/styled', 'framer-motion']
}
}); |