Skip to content

Commit 1c243e2

Browse files
committed
Pre-optimize vuetify devs in development mode
1 parent bb141e0 commit 1c243e2

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

frontend/vite.config.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,56 @@ export default defineConfig(({ mode }) => {
1818
const backendPort = env.DEV_PORT ?? "5000";
1919

2020
return {
21+
optimizeDeps: {
22+
include: [
23+
// Included to prevent reloads in dev mode
24+
"vuetify/components/transitions",
25+
"vuetify/components/VAlert",
26+
"vuetify/components/VAppBar",
27+
"vuetify/components/VAutocomplete",
28+
"vuetify/components/VAvatar",
29+
"vuetify/components/VBottomNavigation",
30+
"vuetify/components/VBtn",
31+
"vuetify/components/VBtnGroup",
32+
"vuetify/components/VBtnToggle",
33+
"vuetify/components/VCard",
34+
"vuetify/components/VCarousel",
35+
"vuetify/components/VCheckbox",
36+
"vuetify/components/VChip",
37+
"vuetify/components/VDataTable",
38+
"vuetify/components/VDialog",
39+
"vuetify/components/VDivider",
40+
"vuetify/components/VEmptyState",
41+
"vuetify/components/VExpansionPanel",
42+
"vuetify/components/VFileInput",
43+
"vuetify/components/VForm",
44+
"vuetify/components/VGrid",
45+
"vuetify/components/VHover",
46+
"vuetify/components/VIcon",
47+
"vuetify/components/VImg",
48+
"vuetify/components/VItemGroup",
49+
"vuetify/components/VLabel",
50+
"vuetify/components/VList",
51+
"vuetify/components/VMenu",
52+
"vuetify/components/VNavigationDrawer",
53+
"vuetify/components/VProgressCircular",
54+
"vuetify/components/VProgressLinear",
55+
"vuetify/components/VRating",
56+
"vuetify/components/VSelect",
57+
"vuetify/components/VSheet",
58+
"vuetify/components/VSkeletonLoader",
59+
"vuetify/components/VSlider",
60+
"vuetify/components/VSnackbar",
61+
"vuetify/components/VSpeedDial",
62+
"vuetify/components/VSwitch",
63+
"vuetify/components/VTabs",
64+
"vuetify/components/VTextarea",
65+
"vuetify/components/VTextField",
66+
"vuetify/components/VToolbar",
67+
"vuetify/components/VTooltip",
68+
"vuetify/components/VWindow",
69+
],
70+
},
2171
build: {
2272
target: "esnext",
2373
},

0 commit comments

Comments
 (0)