Vue.js module for WordPress, PWA ready, with full support for Vuex Store, Vue Router, Vue SSR and Nuxt.js https://vuewordpress.io/
npm install @vue-wordpress/core
or
yarn add @vue-wordpress/core
import Vue from 'vue'
import Wordpress from '@vue-wordpress/core'
Vue.use(Wordpress, {
config: {
url: 'https://your-wordpress-url.com/',
lang: 'en' // Your site's default language – It will be added to the html lang attribute.
},
store,
router
// Injecting VueX Store and Router is obligatory
})
If you want to use this module with Nuxt.js, we have created a dedicated package available here: @vue-wordpress/nuxt
If you want to use this module with Vue Storefront, we have created a dedicated package available here:
@vue-wordpress/vsf