Permalink
Browse files

Lazy load the example vue component

  • Loading branch information...
acodeninja committed Mar 13, 2018
1 parent 5211678 commit 75b15fcabf9b9a7b84fb8c3f43f358e624a2e194
Showing with 4 additions and 1 deletion.
  1. +4 −1 resources/assets/js/app.js
@@ -15,7 +15,10 @@ window.Vue = require('vue');
* or customize the JavaScript scaffolding to fit your unique needs.
*/

Vue.component('example-component', require('./components/ExampleComponent.vue'));
Vue.component(
'example-component',
() => import(/* webpackChunkName: "example-component" */ './components/ExampleComponent.vue')
);

const app = new Vue({
el: '#app'

0 comments on commit 75b15fc

Please sign in to comment.