-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change dest folder for the Lib-file #698
Comments
If you need that flexibility, I would recommend using the [ You can pass in the service worker file that was previously generated as the source If you go this route, then you should remove the actual listing of URLs/revisions from the |
@jeffposnick thx for the help. I have another question. I change my code to "inject manifest" and set my custom path to the lib. If an update comes out, then you have to adjust each time the version number and this is not really optimal. I mean, it would be enough if the file naming is workbox-sw.prod.js or workbox-sw.dev.js. |
Including a version number in the path is a requirement due to the way caching of So if we didn't include the version number in the filename, the URL This behavior will hopefully change in the future; see w3c/ServiceWorker#893 for more detail about the planned changes. As browsers start implementing those changes, we'll revisit the recommendations library versioning. |
Library Affected:
workbox-sw, workbox-build, etc.
Issue or Feature Request Description:
Can i change the "importScript" copy path with the gulp-workbox?
actually this path generated
importScripts('workbox-sw.prod.v1.1.0.js');
but i want this
importScripts('build/workbox-sw.prod.v1.1.0.js');
The text was updated successfully, but these errors were encountered: