Skip to content

Commit 05acbad

Browse files
committed
formatting
1 parent 4dadb93 commit 05acbad

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

resources/js/app.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,26 @@ require('./bootstrap');
99

1010
window.Vue = require('vue');
1111

12+
/**
13+
* The following block of code may be used to automatically register your
14+
* Vue components. It will recursively scan this directory for the Vue
15+
* components and automatically register them with their "basename".
16+
*
17+
* Eg. ./components/CreateUser.vue -> <create-user></create-user>
18+
*/
19+
20+
// const files = require.context('./', true, /\.vue$/i)
21+
22+
// files.keys().map(key => {
23+
// return Vue.component(_.last(key.split('/')).split('.')[0], files(key))
24+
// })
25+
1226
/**
1327
* Next, we will create a fresh Vue application instance and attach it to
1428
* the page. Then, you may begin adding components to this application
1529
* or customize the JavaScript scaffolding to fit your unique needs.
1630
*/
1731

18-
const files = require.context('./', true, /\.vue$/i)
19-
files.keys().map(key => {
20-
const name = _.last(key.split('/')).split('.')[0]
21-
return Vue.component(name, files(key))
22-
})
23-
2432
const app = new Vue({
2533
el: '#app'
2634
});

0 commit comments

Comments
 (0)