Skip to content

Commit

Permalink
Update vite.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jagankumar-egov committed Jul 2, 2024
1 parent 10644da commit 125b747
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions micro-frontends/sample/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

// https://vitejs.dev/config/
export default defineConfig({
base: '/sample-ui/',
plugins: [react()],
})
base: '/sample-ui/',
build: {
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('node_modules')) {
return id.toString().split('node_modules/')[1].split('/')[0].toString();
}
}
}
}
}
});

0 comments on commit 125b747

Please sign in to comment.