ppresume / community

Discussions, feedbacks, roadmaps, community.
57 stars 3 forks source link

feat: adopt google workbox to init PWA setup #41

Closed xiaohanyu closed 2 months ago

xiaohanyu commented 2 months ago

Description

workbox seems to be the defac to way to enable PWA for a web site. We want to integrate it and avoid re-invent wheels.

[Optional] Possible Solutions

Acceptance Criteria

Todo list

### Tasks
- [x] decide which lib/framework to use for PWA adoption
- [x] install necessary libs to project
- [x] check debug/production environment difference
xiaohanyu commented 2 months ago

We decided to use serwist, reasons:

xiaohanyu commented 2 months ago

There're some difference for cache behaviour when process.env.NODE_ENV is switching from development to production

xiaohanyu commented 2 months ago

Overall serwist is pretty good, though its docs is not very complete.