Skip to content

Instantly share code, notes, and snippets.

/main.js Secret

Created December 26, 2016 22:56
Show Gist options
  • Save anonymous/a52df5dc3954614645f14d1f9b014ce4 to your computer and use it in GitHub Desktop.
Save anonymous/a52df5dc3954614645f14d1f9b014ce4 to your computer and use it in GitHub Desktop.
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import Axios from 'axios'
import routes from './routes'
Vue.prototype.$http = Axios
/* eslint-disable no-new */
new Vue({
routes,
render: h => h(App)
}).$mount('#app')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment