module.exports = {
plugins: {
'~plugins/fullpage-vue.js'
},
build: {
vendor: [
'fullpage-vue'
]
...
}
import Vue from 'vue'
import VueFullpage from 'fullpage-vue'
if (process.BROWSER_BUILD) {
Vue.use(VueFullpage)
}
module.exports = {
plugins: [
// ssr: false to only include it on client-side
{ src: '~plugins/fullpage-vue.js', ssr: false }
],
build: {
vendor: [
'fullpage-vue'
]
...
}