mirror of
https://github.com/Snigdha-OS/snigdhaos-tools.git
synced 2025-09-04 01:46:37 +02:00
27 lines
583 B
TypeScript
27 lines
583 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
base: '/snigdhaos-tools/',
|
|
plugins: [react()],
|
|
optimizeDeps: {
|
|
exclude: ['lucide-react'],
|
|
},
|
|
server: {
|
|
open: true, // Automatically opens in the default browser
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
entryFileNames: 'script.js',
|
|
assetFileNames: (chunkInfo) => {
|
|
if (chunkInfo.name?.endsWith('.css')) {
|
|
return 'style.css';
|
|
}
|
|
return '[name].[ext]';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|