Hi, I’m using Hugo Modules to import several JS libraries from GitHub Repos.
Some have their distribution files in a
/src folder, or something similar.
I’m able to do something like this :
module : imports : - # lazyload disable : false path : github.com/verlok/lazyload mounts : - source : dist target : assets/js/vendor
However, some repos have their distribution files at root. So, I would want to do something like this to just mount everything:
module : imports : - # other lib disable : false path : github.com/.../otherlib mounts : - source : target : assets/js/vendor
but I’m getting
Error: invalid module config for "github.com/.../otherlib": both source and target must be set
I’ve also tried to set
source to the file name; no luck.
Am I missing something? or is this a current limitation.