diff --git a/src/stubs/app.js b/src/stubs/app.js index 98eca79..233a8fa 100644 --- a/src/stubs/app.js +++ b/src/stubs/app.js @@ -17,6 +17,17 @@ window.Vue = require('vue'); Vue.component('example-component', require('./components/ExampleComponent.vue')); +/** + * The following block of code may be used to automatically register your + * Vue components. It will recursively scan this directory for the Vue + * components and automatically register them with their "basename". + * + * Eg. ./components/ExampleComponent.vue -> + */ + +// const files = require.context('./', true, /\.vue$/i) +// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key))) + const app = new Vue({ el: '#app' });