Static GitHub Issues

[1938] external plugin variable

prev: Nuxt Web page problem!
next: SSR vs. static site generation

I have a js plugin script. If I add it as a plugin it is taking too long to compile.

Is there a way to use head tag to incorporate the plugin and then use the variable set by the plugin. If I try to access the variable in the component I get variable not defined.

<!--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/c1729">#c1729</a>)</em></sub></div>