Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Vue from 'nativescript-vue'
  2. import { ModalStack, overrideModalViewMethod, VueWindowedModal } from 'nativescript-windowed-modal'
  3. import VueDevtools from 'nativescript-vue-devtools'
  4. import RadSideDrawer from 'nativescript-ui-sidedrawer/vue'
  5.  
  6. import Home from './views/Home'
  7. import store from './store/store'
  8.  
  9. overrideModalViewMethod()
  10.  
  11. Vue.registerElement('ModalStack', () => ModalStack)
  12. Vue.use(VueWindowedModal)
  13. Vue.use(RadSideDrawer)
  14.  
  15. if(TNS_ENV !== 'production') {
  16.   Vue.use(VueDevtools)
  17. }
  18. // Prints Vue logs when --env.production is *NOT* set while building
  19. Vue.config.silent = (TNS_ENV === 'production')
  20.  
  21. new Vue({
  22.   store,
  23.   render: h => h('frame', [h(Home)])
  24. }).$start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement