Open ChrisAllday opened 3 years ago
I think so, use dest
config option.
@shadowwalker I did attempt that, however it still tries to load the sw.js from https://{url}/sw.js
instead of checking https://{url}/pwa/sw.js
.
Any idea how to change this as well?
That's scope
you should concern about. In most cases you want it to be loaded from the root path, only when you want the pwa in subpath like http://{url}/pwa/**/*
and don't want the service worker to work for other paths like http://{url}/abc/**/*
. So far I suggest you keep it in /public
directly.
If we want it to be inside sub-folder then how can we achieve that without disturbing the scope.
Also is there any way I can have custom workbox file name ?
@shadowwalker Is it possible to load the service-worker from a CDN instead of the root URL? Like https://mycdnurl.com/sw.js
rather than https://mywebsiteurl.com/sw.js
? (stackoverflow url)
Hi, I have a question regarding placing the generated files in a specific directory.
Is it possible to specify a directory inside the public folder such as
/public/pwa
, as a location for the service worker and workbox files?