csgeek
1
I was wondering if it was possible or more specifically how, one would include a custom javascript lib.
I wanted to add support for https://github.com/elviswolcott/remark-admonitions which if I use npm/yarn it’s around 40+ dependencies.
How would one add support for JS code beyond just a simple single CDN import?
We have 2 ways now beyond just importing via CDN, and will have 3 ways in the future.
- Manage packages with npm, build with webpack, percel, and put the building assets under
assets
or static
- Manage packages with npm and build with Hugo’s js.Build
-
Manage packages with Hugo Module and build with js.Build (future implementation)
4 Likes
system
Closed
3
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.