Under Hugo’s design, third-party libraries hosted on external sites are typically used to implement certain effects.
However, depending on the network environment, you may sometimes want to download these third-party libraries locally and deploy them alongside your site to simplify network dependencies.
You can use npm to download these third-party libraries, then copy them into Hugo’s output static asset directory during deployment.
For reference: BoilTask/web-third-party