Home

Issue: 1064

How to use WOW.js with nuxt

[issue link]

I am having issues using a third party library. I have tried to follow the documentation but I am missing something. Using the starter template, I npm installed wow.js. I don’t understand what to put in vendor js file.

my nuxt.config.js looks like:
plugins: [ { src: '~plugins/main.js', ssr: false } ], build: { vendor: ['wowjs'],

my main.js file in the plugin folder reads:
if (process.BROWSER_BUILD) { require('WOW') }

Any pointers?

This question is available on Nuxt.js community (#c924)