I've got a web-app thats deployed to the non root path of a static server. That is MyApp when built is deployed to a path/folder https://example.com/myapp.
MyApp is using vue and webpack so I've added the GenerateSW workbox plugin with the standard config. It's registering, adding all the files I need to the cache, but it's not being used.
My service worker is registering with scriptURL https://example.com/myapp/service-worker.js and scope https://example.com/myapp/. My cache storage has my files /myapp/index.html?__WB_REVISION_... /myapp/app.<hash>.js?__WB_REVISION_.. and so on. However the service worker is still not controlling the page, ie navigator.serviceWorker.controller is returning null.
I've seen this https://developers.google.com/web/tools/workbox/guides/troubleshoot-and-debug#common_problems but unlike in this situation I don't want the service worker having the root scope.
Am I missing any config options?