This works. The footer/service-worker.html is in the pwa module, the code above is in the blocks module, hugo runs from the samui-samui.de website root "module" site, ... thingy...
Now I wanted to somehow add a fallback for if the pwa module is not installed:
This results in WARN 2021/02/07 22:01:23 service worker module not properly installed instead of loading the partial that exists and is properly mounted.
nothing like hugo mod vendor or hugo mod npm pack is done.
I have a local replace rule running
Garuda is public for testing, if you need access to samui-samui.de let me know and I'll add you to the repo.
I have a "weird" module structure:
In the blocks module there is a layout loaded from modules.
This works. The footer/service-worker.html is in the pwa module, the code above is in the blocks module, hugo runs from the samui-samui.de website root "module" site, ... thingy...
Now I wanted to somehow add a fallback for if the pwa module is not installed:
This results in
WARN 2021/02/07 22:01:23 service worker module not properly installed
instead of loading the partial that exists and is properly mounted.hugo mod vendor
orhugo mod npm pack
is done.Garuda is public for testing, if you need access to samui-samui.de let me know and I'll add you to the repo.