Skip to content
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

index.html precache-manifest version not changing (vue cli pwa) #43

Open
jaunt opened this issue Sep 4, 2019 · 1 comment
Open

index.html precache-manifest version not changing (vue cli pwa) #43

jaunt opened this issue Sep 4, 2019 · 1 comment

Comments

@jaunt
Copy link

jaunt commented Sep 4, 2019

I'm using the plugin with "/" as one of my pre rendered routes. This of course generates an app.html since index.html becomes the pre-rendered version.

I'm also using the Vue CLI 3 PWA plugin in InjectManifest mode. What happens, is that the build process creates the precache-manifest.xxxxx.js file, and has both the app.html and index.html file, but index.html revision never changes, so my service worker gets confused once deployed as the new index.html file isn't loaded on an update. App.html seems to get a new version which is good.

I wonder if it has to do with order of operations. I.e. when does vue-cli-plugin-prerender-spa create app.html, and then I guess overwrite the index.html file generated by webpack build? I'm guessing that the workbox plugin which hashes the files to create the revision strings in precache-manifest.xxxxx.js is doing it an an inopportune time.

Thoughts?

Thanks!

@jaunt
Copy link
Author

jaunt commented Sep 10, 2019

My solution is here, but I've since abandoned pre-rendering altogether. I believe my app isn't well suited to it. https://gist.github.com/jaunt/b5127af103995e80dd74ff14662a0281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant