mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-30 23:24:04 +03:00
0bf0ceb756
* test: use build/dist for e2e testing to prevent errors due to wrong build configs * test: use wrong build conf to test the test * test: exclude dist for babel-loader in test build * chore: optimize more for ie9 prefer not to use language features which needs to be transpiled for ie9. Eg for..of to forEach and no spreads * fix: continue
15 lines
324 B
JavaScript
15 lines
324 B
JavaScript
import Vue from 'vue'
|
|
import { _import, getVueMetaPath } from '../../utils/build'
|
|
import App from './App.vue'
|
|
import createRouter from './router'
|
|
|
|
export default async function createServerApp () {
|
|
const VueMeta = await _import(getVueMetaPath())
|
|
|
|
Vue.use(VueMeta)
|
|
|
|
App.router = createRouter()
|
|
|
|
return new Vue(App)
|
|
}
|