app.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * First we will load all of this project's JavaScript dependencies which
  3. * includes Vue and other libraries. It is a great starting point when
  4. * building robust, powerful web applications using Vue and Laravel.
  5. */
  6. import './bootstrap';
  7. // import { createApp } from 'vue';
  8. /**
  9. * Next, we will create a fresh Vue application instance. You may then begin
  10. * registering components with the application instance so they are ready
  11. * to use in your application's views. An example is included for you.
  12. */
  13. // const app = createApp({});
  14. // import ExampleComponent from './components/ExampleComponent.vue';
  15. // app.component('example-component', ExampleComponent);
  16. /**
  17. * The following block of code may be used to automatically register your
  18. * Vue components. It will recursively scan this directory for the Vue
  19. * components and automatically register them with their "basename".
  20. *
  21. * Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
  22. */
  23. // Object.entries(import.meta.glob('./**/*.vue', { eager: true })).forEach(([path, definition]) => {
  24. // app.component(path.split('/').pop().replace(/\.\w+$/, ''), definition.default);
  25. // });
  26. /**
  27. * Finally, we will attach the application instance to a HTML element with
  28. * an "id" attribute of "app". This element is included with the "auth"
  29. * scaffolding. Otherwise, you will need to add an element yourself.
  30. */
  31. // app.mount('#app');