Skip to content

Commit ec9f86e

Browse files
committed
Add Lazy load in components 🍕
1 parent 25344ac commit ec9f86e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
33
import Vue from 'vue'
44
import Vuetify from 'vuetify'
5-
import App from './App'
5+
const App = () => import('./App')
66
import * as firebase from 'firebase'
77
import router from './router'
88
import { store } from './store'
9-
import AlertCmp from './components/Shared/Alert.vue'
9+
const AlertCmp = () => import('./components/Shared/Alert.vue')
1010

1111
Vue.use(Vuetify)
1212
Vue.config.productionTip = false

0 commit comments

Comments
 (0)