Skip to content

Commit

Permalink
Update vite.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
franfreezy authored Dec 5, 2024
1 parent fbe93eb commit fccfa92
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@ export default defineConfig({

server: {
build: {
outDir: './frontend/dist',
outDir: 'dist',
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('node_modules')) {
return 'vendor'; // All third-party libraries will go into a 'vendor' chunk
}
}
}
}
},
proxy: {
'/backend': {
Expand Down

0 comments on commit fccfa92

Please sign in to comment.