3ee9b9e6de
CI / build (push) Has been cancelled
- Introduce PolicyModal component for license and privacy policy display - Add Quick Start section to project detail pages - Update project descriptions, features, and URLs for several projects - Add new logos, screenshots, and favicon - Extend types and configuration for new features
35 lines
767 B
TypeScript
35 lines
767 B
TypeScript
/// <reference types="vitest/config" />
|
|
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks(id) {
|
|
if (id.includes('node_modules/react') || id.includes('node_modules/react-router')) {
|
|
return 'vendor-react';
|
|
}
|
|
if (id.includes('node_modules/lucide')) {
|
|
return 'vendor-lucide';
|
|
}
|
|
},
|
|
},
|
|
},
|
|
assetsInlineLimit: 4096,
|
|
},
|
|
server: {
|
|
host: true,
|
|
warmup: {
|
|
clientFiles: ['./src/data/loader.ts'],
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: './src/test/setup.ts',
|
|
css: true,
|
|
},
|
|
});
|