Static GitHub Issues

[1309] add the local js file in the 'script' of the 'head' option in nuxt.config.js

prev: specify the transition of <nuxt /> subcomponent in layout component
next: How to run no ssr mode?

I would like to add the local js file in the 'script' of the 'head' option in nuxt.config.js, src: '~ / plugins / a.js' and try './plugins/a.js' Of the wording, has been prompted to find the file, if it is a reference to a complete CDN address can be, how can I quote the local documents here?

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