Comments (4)
@sgpinkus Feel free to send a PR if you want to modify/add some entries 🙏
from docs.
PWA plugin options:
generateSW
strategy, useworkbox
PWA plugin optioninjectManifest
strategy, useinjectManifest
PWA plugin option
If you use generateSW
strategy, then, you only need to configure
the runtime caching plugins (via workbox.runtimeCaching
), check VitePWA options
codesnippet here https://vite-pwa-org.netlify.app/workbox/generate-sw.html#cache-external-resources
vite-plugin-pwa
is a Workbox wrapper, you should be familiar with Workbox.
from docs.
Types can be found here:
workbox
andinjectManifest
pwa plugin options: https://github.com/vite-pwa/vite-plugin-pwa/blob/main/src/types.ts#L127-L134- custom
injectManifest
extending workbox-buildInjectManifest
: https://github.com/vite-pwa/vite-plugin-pwa/blob/main/src/types.ts#L6 workbox-build
types: https://github.com/vite-pwa/vite-plugin-pwa/blob/main/src/types.ts#L2
from docs.
Thanks for the pointers. Will be sure to PR to clarify doc once I understand how to cache-first and other policies configured and working correctly.
from docs.
Related Issues (20)
- automatic cutting
- Typo HOT 6
- How to set ignoreVary for matching cache in ? HOT 2
- self.skipWaiting is not a function HOT 6
- `devTools.enabled` in strategy `generateSW` breaks due to wrong `globDirectory` HOT 1
- No workbox debug logs in with `devtools.enabled` and strategy `injectedManifest` HOT 1
- Where to put the manifest generated data? HOT 4
- [BUG]: custom envPrefix doesn't work when building
- Cleaning local storage on automatic reload
- Add an example to implement Push Notifications? HOT 6
- Is it possible to change the index.html file name?
- Warnings on setting up a new workspace HOT 1
- Server keeps reloading in dev-mode on GET requests
- Create manifest.webmanifest in a sub directory of public HOT 3
- Ability to track download progress?
- Service Worker "import sentry-release-injection" error when loading page
- If I want to create a big data screen, how do I know the website where I installed it?
- "@vite-pwa/nuxt": "^0.1.1" - manifest.webmanifest is 404 HOT 1
- Generate PWA icons using favicon.inbrowser.app HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.