2016-09-20 16:58:02 +00:00
|
|
|
// TODO verify if it's needed, added because Vuex require Promise in the global scope
|
|
|
|
|
// and babel-runtime doesn't affect external libraries
|
|
|
|
|
require('babel-polyfill');
|
|
|
|
|
|
2016-09-18 19:51:20 +00:00
|
|
|
import Vue from 'vue';
|
2016-09-20 16:58:02 +00:00
|
|
|
import VuexRouterSync from 'vuex-router-sync';
|
|
|
|
|
import App from './components/app';
|
2016-09-18 19:51:20 +00:00
|
|
|
import router from './router';
|
2016-09-20 16:58:02 +00:00
|
|
|
import store from './vuex/store';
|
|
|
|
|
|
|
|
|
|
// Sync Vuex and Router
|
|
|
|
|
VuexRouterSync.sync(store, router);
|
2016-09-18 19:51:20 +00:00
|
|
|
|
|
|
|
|
new Vue({ // eslint-disable-line no-new
|
|
|
|
|
router,
|
2016-09-20 16:58:02 +00:00
|
|
|
store,
|
2016-09-18 19:51:20 +00:00
|
|
|
el: '#app',
|
|
|
|
|
render: h => h(App),
|
|
|
|
|
});
|