Home

Issue: 1150

Additional js with external resource

[issue link]

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']
      }
    })
This question is available on Nuxt.js community (#c1010)