'Nuxt 3 Local JS Inclusion
Running into a wall with Nuxt 3 and including local JS files. I converted an HTML template into a main Layout and several Components. Also added in the CSS supplied from the theme as global. The last part is to include the following local JS files supplied from the theme:
custom.js, bootstrap.min.js, and slider.js
I have tried adding them to the nuxt.config.ts
within the head element, as plugins, and within the layout Component as well, but none of these methods seem to work. I can't seem to find a clean working answer for Nuxt 3.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|