Created
September 7, 2020 15:28
-
-
Save menangen/edd75c365ad36e88539d7eb79373517f to your computer and use it in GitHub Desktop.
Vue vendor export
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from "vue" | |
import App from "components/App.vue" | |
new Vue(App); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import VueRouter from "vue-router" | |
import loginComponent from "../components/login.vue" | |
import signUpComponent from "../components/signup.vue" | |
import indexComponent from "../components/index.vue" | |
const router = new VueRouter({ | |
routes: [ | |
{ path: '/', component: indexComponent }, | |
{ path: '/login', component: loginComponent }, | |
{ path: '/signup', component: signUpComponent } | |
] | |
}) | |
export default router |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from "vue" | |
import Vuex from "vuex" | |
import VueRouter from "vue-router" | |
import Vuetify from "components/vuetify" | |
Vue.use(Vuex) | |
Vue.use(VueRouter) | |
Vue.use(Vuetify) | |
export { Vue, Vuex, VueRouter }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment