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

[ENHANCEMENT] Optimize PWA support #56

Merged
merged 2 commits into from
May 6, 2021
Merged

[ENHANCEMENT] Optimize PWA support #56

merged 2 commits into from
May 6, 2021

Conversation

HEIGE-PCloud
Copy link
Owner

  • Auto upload sw.min.js as an asset with enablePWA option
  • Update scripts in package.json
  • Remove the cache for avatar in sw.js

- Auto upload sw.min.js as asset with enablePWA option
- Update scripts in package.json
- Remove the cache for avatar in sw.js
@HEIGE-PCloud HEIGE-PCloud self-assigned this May 6, 2021
@HEIGE-PCloud HEIGE-PCloud added the enhancement Enhance existing features label May 6, 2021
@HEIGE-PCloud HEIGE-PCloud added this to the v0.2.11 milestone May 6, 2021
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 6, 2021

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1dd0fc6
Status: ✅  Deploy successful!
Preview URL: https://9d1d9cba.hugodoit.pages.dev

View logs

@HEIGE-PCloud
Copy link
Owner Author

Assets publishing reference: https://gohugo.io/hugo-pipes/introduction/#asset-publishing

@HEIGE-PCloud
Copy link
Owner Author

With a proper configuration of site.webmanifest, the site can be turned into a PWA with only one option enablePWA.

@HEIGE-PCloud
Copy link
Owner Author

Since there are many extra options added into the config.toml, the guide of migrating from LoveIt should be updated.

@HEIGE-PCloud HEIGE-PCloud merged commit 47fa36d into main May 6, 2021
@HEIGE-PCloud HEIGE-PCloud deleted the optimize/pwa branch May 6, 2021 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant