Skip to content

Commit

Permalink
add vite
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatyana-js committed Feb 7, 2025
1 parent a0001b4 commit ccb7744
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ export default defineConfig({
},
},
build: {
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('bootstrap' || 'index-BwV0OUVV.css')) {
return 'bootstrap';
}
if (id.includes('node_modules')) {
return 'vendor';
}
},
},
},
chunkSizeWarningLimit: 1000,
// rollupOptions: {
// output: {
// manualChunks(id) {
// if (id.includes('bootstrap' || 'index-BwV0OUVV.css')) {
// return 'bootstrap';
// }
// if (id.includes('node_modules')) {
// return 'vendor';
// }
// },
// },
// },
},
});

0 comments on commit ccb7744

Please sign in to comment.