2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-12 12:42:25 +03:00

test: use build/dist for e2e testing (#421)

* 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
This commit is contained in:
Pim
2019-07-27 17:17:30 +02:00
committed by GitHub
parent 04b2692f0b
commit 0bf0ceb756
10 changed files with 121 additions and 103 deletions
+8 -4
View File
@@ -1,10 +1,14 @@
import Vue from 'vue'
import VueMeta from '../../../src'
import { _import, getVueMetaPath } from '../../utils/build'
import App from './App.vue'
import createRouter from './router'
Vue.use(VueMeta)
export default async function createServerApp () {
const VueMeta = await _import(getVueMetaPath())
App.router = createRouter()
Vue.use(VueMeta)
export default new Vue(App)
App.router = createRouter()
return new Vue(App)
}