I’m trying to wrap a module for ionicon.
It works fine for the css/font part (modules are really best thing since they invented sliced bread)*.
But I have to reference external scripts that are (unfortunatelly) not given with the
They are provided by https://unpkg.com/ionicons/dist/ionicons/, but this does not works when I want to
module.imports it (Hugo 0.77.0)
[[module.imports]] path = "unpkg.com/browse/ionicons/dist/ionicons/" [[module.imports.mounts]] source = "/" target = "static/js"
Is there a way to achieve this : Using this external folder, not on GitHub with modules, so my module could be self sufficient ?
https://unpkg.com/browse/ionicons/dist/ionicons/ is readable but the error is:
Error: module "unpkg.com/browse/ionicons/dist/ionicons/" not found; either add it as a Hugo Module or store it in "/Users/myname/Documents/Git/lachotte-agico/themes".: module does not exist