Skip to content

Commit 9454be2

Browse files
added main.js
1 parent 4913763 commit 9454be2

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

  • generator/templates/Default/src
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import '@babel/polyfill'
2+
import Vue from 'vue'
3+
import API from './API.js';
4+
import './plugins/vuetify'
5+
import VuetifyResource from '@kingscode/vuetify-resource';
6+
import App from './App.vue'
7+
import router from './router'
8+
<%_ if (options.useAuthorisation) { _%>
9+
import store from './store/store.js'
10+
<%_ } _%>
11+
import './registerServiceWorker'
12+
13+
Vue.prototype.$http = API;
14+
window.$http = API;
15+
Vue.use(VuetifyResource);
16+
17+
Vue.config.productionTip = false
18+
19+
new Vue({
20+
router,
21+
store,
22+
render: h => h(App)
23+
}).$mount('#app')

0 commit comments

Comments
 (0)