@@ -6,6 +6,55 @@ import mkcert from "vite-plugin-mkcert";
66import { VitePWA } from "vite-plugin-pwa" ;
77import vuetify , { transformAssetUrls } from "vite-plugin-vuetify" ;
88
9+ // Vuetify components to preoptimize for faster dev startup
10+ const VUETIFY_COMPONENTS = [
11+ "vuetify/components/transitions" ,
12+ "vuetify/components/VAlert" ,
13+ "vuetify/components/VAppBar" ,
14+ "vuetify/components/VAutocomplete" ,
15+ "vuetify/components/VAvatar" ,
16+ "vuetify/components/VBottomNavigation" ,
17+ "vuetify/components/VBtn" ,
18+ "vuetify/components/VBtnGroup" ,
19+ "vuetify/components/VBtnToggle" ,
20+ "vuetify/components/VCard" ,
21+ "vuetify/components/VCarousel" ,
22+ "vuetify/components/VCheckbox" ,
23+ "vuetify/components/VChip" ,
24+ "vuetify/components/VDataTable" ,
25+ "vuetify/components/VDialog" ,
26+ "vuetify/components/VDivider" ,
27+ "vuetify/components/VEmptyState" ,
28+ "vuetify/components/VExpansionPanel" ,
29+ "vuetify/components/VFileInput" ,
30+ "vuetify/components/VForm" ,
31+ "vuetify/components/VGrid" ,
32+ "vuetify/components/VHover" ,
33+ "vuetify/components/VIcon" ,
34+ "vuetify/components/VImg" ,
35+ "vuetify/components/VItemGroup" ,
36+ "vuetify/components/VLabel" ,
37+ "vuetify/components/VList" ,
38+ "vuetify/components/VMenu" ,
39+ "vuetify/components/VNavigationDrawer" ,
40+ "vuetify/components/VProgressCircular" ,
41+ "vuetify/components/VProgressLinear" ,
42+ "vuetify/components/VRating" ,
43+ "vuetify/components/VSelect" ,
44+ "vuetify/components/VSheet" ,
45+ "vuetify/components/VSkeletonLoader" ,
46+ "vuetify/components/VSlider" ,
47+ "vuetify/components/VSnackbar" ,
48+ "vuetify/components/VSpeedDial" ,
49+ "vuetify/components/VSwitch" ,
50+ "vuetify/components/VTabs" ,
51+ "vuetify/components/VTextarea" ,
52+ "vuetify/components/VTextField" ,
53+ "vuetify/components/VToolbar" ,
54+ "vuetify/components/VTooltip" ,
55+ "vuetify/components/VWindow" ,
56+ ] ;
57+
958// https://vitejs.dev/config/
1059export default defineConfig ( ( { mode } ) => {
1160 // Load ENV variables from the parent directory and the current directory.
@@ -19,54 +68,7 @@ export default defineConfig(({ mode }) => {
1968
2069 return {
2170 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- ] ,
71+ include : VUETIFY_COMPONENTS ,
7072 } ,
7173 build : {
7274 target : "esnext" ,
0 commit comments