Skip to content

Commit

Permalink
manual chunk some dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Apr 7, 2024
1 parent 976274f commit 674e64e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ export default defineConfig(({ mode }) => {
},
build: {
target: "esnext",
chunkSizeWarningLimit: 1000,
rollupOptions: {
output: {
manualChunks: {
vue_core: [
"vue",
"vue-router",
"vue-calendar-heatmap",
"vue-prism-editor",
"vue-tippy",
],
// biggest dependencies get separate files
vue_graph: ["vue-graph"],
vuetify: ["vuetify"],
},
},
},
},
resolve: {
alias: {
Expand Down

0 comments on commit 674e64e

Please sign in to comment.