Skip to content

Commit

Permalink
Extract opensight-ui and its dependencies into an own chunk
Browse files Browse the repository at this point in the history
Split the required js code for opensigth-ui into an own chunk bundle for
production builds.
  • Loading branch information
bjoernricks committed Apr 29, 2024
1 parent 87c6a40 commit 0b4eccf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,12 @@ export default defineConfig({
},
build: {
outDir: 'build',
rollupOptions: {
output: {
manualChunks: {
'opensight-ui': ['@greenbone/opensight-ui-components'],
},
},
},
},
});

0 comments on commit 0b4eccf

Please sign in to comment.