-
Notifications
You must be signed in to change notification settings - Fork 201
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
[bug] staticFileGlobs in sw-precache-config not process in build #2207
Comments
Same here, |
+1 and it is very critical. |
i had copy to folder build/unbundled manually, that's very bad. |
Do not forget to copy the files before you run polymer build. Otherwise your service-worker.js will not contain the files, because sw-precache checks if the files exists. |
Oh yea, jeeze look at this (output from when I run
It looks like we're running into a problem where the same I'll try to fix this ASAP so that we can get a fix out in the next release. |
Thanks for reporting @alimd & all |
PR to fix: Polymer/polymer-build#27 |
Fixed in v0.16.0 (just pushed out) |
Thanks a lot. But i think this is not the expected behavior. When you make a clean build (or first build) the files from staticFileGlobs are not copied. Therefore they are not listed in service-worker.js. @FredKSchott Please reopen this issue. |
Copy the files defined in sw-precache-config.js (staticFileGlobs) to build/bundled and build/unbundled
Description
staticFileGlobs
insw-precache-config.js
not process in build and compiledservice-worker.js
not contain these files!Versions & Environment
Steps to Reproduce
sw-precache-config.js
Expected Results
compiled
service-worker.js
in PrecacheConfig array contain staticFileGlobs filesor in browser app work fully offline in second visit
Actual Results
app not work offline for staticFileGlobs files and images or manifest load every time from net or fail in offline mode!
Other auto detect files and components work offline
The text was updated successfully, but these errors were encountered: