mirror of
https://github.com/Snigdha-OS/package-browser.git
synced 2025-09-21 12:05:00 +02:00
⚡️ perf(_rollup): rename the index, style nd js
This commit is contained in:
@@ -4,8 +4,24 @@ import react from '@vitejs/plugin-react';
|
|||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
base: '/package-browser/',
|
base: '/package-browser/', // For GitHub Pages deployment
|
||||||
|
|
||||||
|
build: {
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
// Entry file for JavaScript
|
||||||
|
entryFileNames: 'main.js', // Ensure JS is named main.js
|
||||||
|
// Chunk file names if you want to bundle them together (optional)
|
||||||
|
chunkFileNames: 'main.js', // All chunks will go into main.js (optional, use with caution)
|
||||||
|
// Asset file names (CSS)
|
||||||
|
assetFileNames: 'style.css', // Ensure CSS is named style.css
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// To split CSS into its own file
|
||||||
|
cssCodeSplit: true,
|
||||||
|
},
|
||||||
|
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
exclude: ['lucide-react'],
|
exclude: ['lucide-react'], // Exclude lucide-react from pre-bundling
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user