jlelse’s Blog

Thoughts, stories and ideas

TIL about vendoring Hugo modules

Published on in 💭 Thoughts
Short link: https://b.jlel.se/s/2e3
Share online Translate
⚠️ This entry is already over one year old. It may no longer be up to date. Opinions may have changed.

Today, I learned that it’s possible to “vendor” Hugo modules. By vendoring Hugo modules, Hugo will add all required module files to your site directory and use them when building your site instead of trying to download them first. No need for me to use a module cache on Drone anymore and two seconds less build time. (But 3000 additional files in my blog repo.)

hugo mod vendor

Tags:

Jan-Lukas Else
Interactions & Comments