2016-07-10 21:07:27 -05:00
|
|
|
|
2016-07-23 11:39:11 -05:00
|
|
|
/**
|
2016-07-23 12:28:02 -05:00
|
|
|
* First we will load all of this project's JavaScript dependencies which
|
2016-11-03 17:06:06 -05:00
|
|
|
* includes Vue and other libraries. It is a great starting point when
|
2016-07-23 12:28:02 -05:00
|
|
|
* building robust, powerful web applications using Vue and Laravel.
|
2016-07-23 11:39:11 -05:00
|
|
|
*/
|
|
|
|
|
|
2016-07-23 12:28:02 -05:00
|
|
|
require('./bootstrap');
|
2016-07-23 11:39:11 -05:00
|
|
|
|
2017-04-17 15:30:36 -05:00
|
|
|
window.Vue = require('vue');
|
|
|
|
|
|
2018-11-02 10:11:21 -05:00
|
|
|
/**
|
|
|
|
|
* 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".
|
|
|
|
|
*
|
2018-11-02 10:13:11 -05:00
|
|
|
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
|
2018-11-02 10:11:21 -05:00
|
|
|
*/
|
|
|
|
|
|
2018-11-02 10:42:02 -05:00
|
|
|
// const files = require.context('./', true, /\.vue$/i)
|
2018-12-14 15:14:03 -05:00
|
|
|
// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default))
|
2018-11-02 10:11:21 -05:00
|
|
|
|
2018-12-14 15:14:03 -05:00
|
|
|
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
|
2018-11-27 07:52:25 +08:00
|
|
|
|
2016-07-23 11:39:11 -05:00
|
|
|
/**
|
2016-07-23 12:28:02 -05:00
|
|
|
* Next, we will create a fresh Vue application instance and attach it to
|
2016-10-10 07:56:44 -05:00
|
|
|
* the page. Then, you may begin adding components to this application
|
|
|
|
|
* or customize the JavaScript scaffolding to fit your unique needs.
|
2016-07-23 11:39:11 -05:00
|
|
|
*/
|
|
|
|
|
|
2016-08-12 11:43:47 -03:00
|
|
|
const app = new Vue({
|
2016-10-02 21:33:42 -05:00
|
|
|
el: '#app'
|
2016-07-23 11:39:11 -05:00
|
|
|
});
|