element/examples/entry.js
2016-07-27 17:05:28 +08:00

20 lines
417 B
JavaScript

import Vue from 'vue';
import entry from './app';
import VueRouter from 'vue-router';
import configRouter from './route.config';
import Element from 'main/index.js';
import 'packages/theme-default/src/index.css';
Vue.use(Element);
Vue.use(VueRouter);
const router = new VueRouter({
base: __dirname,
routes: configRouter
});
new Vue({ // eslint-disable-line
render: h => h(entry),
router
}).$mount('#app');