mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-05 20:26:43 +02:00
42 lines
924 B
TypeScript
42 lines
924 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { resolve } from 'path';
|
|
import ViteSitemap from 'vite-plugin-sitemap';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
ViteSitemap({
|
|
hostname: 'https://www.snigdhaos.org',
|
|
outDir: './dist',
|
|
changefreq: 'daily',
|
|
priority: 0.7,
|
|
// lastmod: true,
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
entryFileNames: 'script.js',
|
|
assetFileNames: ({ name }) => {
|
|
if (name && name.endsWith('.css')) {
|
|
return 'style.css';
|
|
}
|
|
return 'assets/[name]-[hash][extname]';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ['lucide-react'],
|
|
},
|
|
server: {
|
|
open: true, // Automatically open the browser when running the development server
|
|
},
|
|
});
|