I'm trying to add an external resource in my nuxt project. I have this in my nuxt.config.js file:
script: [
{ src: 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js' }
]
But I also need to add this, and am not sure where to put it:
WebFont.load({
google: {
families: ['Overpass:300,600,700']
}
})
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1010">#c1010</a>)</em></sub></div>