Importing Third-Party Libraries Locally in Hugo

Words: 65

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

This post is licensed under CC BY-NC-SA 4.0. If it helped, or if you have anything to say, the comment box below is open.
Page views —
Unique visitors —

Loading...