Skip to content

Instantly share code, notes, and snippets.

@ea2305
Created May 7, 2020 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ea2305/e8babc50651d6cae2cd57841358d5323 to your computer and use it in GitHub Desktop.
Save ea2305/e8babc50651d6cae2cd57841358d5323 to your computer and use it in GitHub Desktop.
example ssr - update main app
// src/main.js
import Vue from 'vue'
import App from './App.vue'
import VueMeta from 'vue-meta'
Vue.config.productionTip = false
Vue.use(VueMeta, {
// optional pluginOptions
refreshOnceOnNavigation: true
})
new Vue({
render: h => h(App),
mounted: () => document.dispatchEvent(new Event("x-app-rendered")),
}).$mount('#app')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment