Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add external scripts #875

Open
Speuta opened this issue Apr 27, 2022 · 0 comments
Open

How to add external scripts #875

Speuta opened this issue Apr 27, 2022 · 0 comments

Comments

@Speuta
Copy link

Speuta commented Apr 27, 2022

I tried to add in nuxt.config.js:

head: {
   ...
   script: [
    { src: './js/external.js', type: 'text/javascript' },
   ],
   ...
}

And added my script in src/extraResources/ and src/renderer/assets/ but it's actually not working (404 error)...
( I tried paths like js/external.js, ~/assets/js/external.js, /js/external.js too )

I think this should be added in your guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant