Skip to content

Instantly share code, notes, and snippets.

@jazibsawar
Created January 5, 2018 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazibsawar/1f7da887f6bd51b709729c496a4940c6 to your computer and use it in GitHub Desktop.
Save jazibsawar/1f7da887f6bd51b709729c496a4940c6 to your computer and use it in GitHub Desktop.
src/main.js
import './startup'
import Vue from 'vue'
import App from './App'
import router from './router'
import * as resources from './resources'
import resource from './plugins/resource'
import deviceQueries from './plugins/device-queries'
import config from './config'
Vue.config.productionTip = false
Vue.use(resource, {
resources,
endpoint: 'https://api.cosmicjs.com/v1/' + config.COSMIC_BUCKET
})
Vue.use(deviceQueries, {
phone: 'max-width: 567px',
tablet: 'min-width: 568px',
mobile: 'max-width: 1024px',
laptop: 'min-width: 1025px',
desktop: 'min-width: 1280px',
monitor: 'min-width: 1448px'
})
new Vue({
router,
render: h => h(App)
}).$mount('#app')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment