Last active
December 31, 2018 02:15
-
-
Save jrgleason/513ed8ad19dbbc421b58e6f0e20ba3fc to your computer and use it in GitHub Desktop.
This file contains 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
// Express Node app | |
app.use('/vue', express.static(__dirname + '/node_modules/vue/dist/vue.esm.browser.js')); | |
app.use('/vue-router', express.static(__dirname + '/node_modules/vue-router/dist/vue-router.esm.js')); |
This file contains 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
script(src="/main.js" type="module") |
This file contains 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 VueRouter from "./vue-router"; | |
Vue.use(VueRouter); | |
const routes = [...]; | |
const router = new VueRouter({ | |
mode: "history", | |
routes: routes | |
}); | |
let app = new Vue({ router }); | |
app.$mount('#jg-app'); |
This file contains 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"; | |
let app = new Vue(); | |
app.$mount('#jg-app'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment