Permalink
Browse files

wip

  • Loading branch information...
taylorotwell committed Nov 2, 2018
1 parent fa2af39 commit c2359fe11938e87aacfbbfec9e7b0d2130c969a8
Showing with 6 additions and 4 deletions.
  1. +6 −4 resources/js/app.js
@@ -17,11 +17,13 @@ window.Vue = require('vue');
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
*/
const files = require.context('./', true, /\.vue$/i)
Vue.component('example-component', require('./components/ExampleComponent.vue'));
files.keys().map(key => {
return Vue.component(_.last(key.split('/')).split('.')[0], files(key))
})
// const files = require.context('./', true, /\.vue$/i)
// files.keys().map(key => {
// return Vue.component(_.last(key.split('/')).split('.')[0], files(key))
// })
/**
* Next, we will create a fresh Vue application instance and attach it to

0 comments on commit c2359fe

Please sign in to comment.