Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/userquin/vite-plugin-pwa-vanillajs
https://github.com/userquin/vite-plugin-pwa-vanillajs
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/userquin/vite-plugin-pwa-vanillajs
- Owner: userquin
- Created: 2022-02-03T13:11:59.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-03T13:20:35.000Z (almost 3 years ago)
- Last Synced: 2024-10-15T00:02:06.013Z (about 1 month ago)
- Language: TypeScript
- Size: 101 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vite Plugin PWA TypeScript Example
Using [vite-plugin-pwa](https://github.com/antfu/vite-plugin-pwa) with `TypeScript`.
This is a working example for https://github.com/antfu/vite-plugin-pwa/issues/207.
To test the `PWA`:
- `pnpm install`
- `pnpm run preview`: open `http://localhost:5000`, should show a prompt with `Ready to work offline`
- stop server and run `pnpm run preview` again, refresh the browser page, should show a prompt with `New content available, click on reload button to update` and a `Refresh Button`.