vue-doc-preview
vue-doc-preview copied to clipboard
how to use in Nuxt.js
when i npm install in nuxt project, it occurs page error for document is not defined.
how to resolve it ?
@cainsyake
Nuxt2
- plugins
plugins/doc-preview.js
import Vue from 'vue';
import VueDocPreview from 'vue-doc-preview'
Vue.component('VueDocPreview', VueDocPreview)
- nuxt.config.js
plugins: [
{src: '@/plugins/doc-preview', ssr: false}
],
- Use