Including a JS library

I was wondering if it was possible or more specifically how, one would include a custom javascript lib.

I wanted to add support for 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.

  1. Manage packages with npm, build with webpack, percel, and put the building assets under assets or static
  2. Manage packages with npm and build with Hugo’s js.Build
  3. Manage packages with Hugo Module and build with js.Build (future implementation)

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.