All Projects → cyyyu → Parcel Plugin Sw Precache

cyyyu / Parcel Plugin Sw Precache

Licence: mit
A Parcel plugin for generating a service worker that precaches resources.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Parcel Plugin Sw Precache

Markcook
A smart and beautiful markdown editor.
Stars: ✭ 547 (+681.43%)
Mutual labels:  pwa, service-worker
Hoverboard
Conference website template
Stars: ✭ 935 (+1235.71%)
Mutual labels:  pwa, service-worker
Articles Translator
📚Translate the distinct technical blogs. Please star or watch. Welcome to join me.
Stars: ✭ 606 (+765.71%)
Mutual labels:  parcel, pwa
Pwa Wp
WordPress feature plugin to bring Progressive Web Apps (PWA) to Core
Stars: ✭ 445 (+535.71%)
Mutual labels:  pwa, service-worker
Parcel Plugin Sw Cache
📦👷 Parcel plugin for caching using a service worker
Stars: ✭ 45 (-35.71%)
Mutual labels:  parcel, service-worker
Offline Plugin
Offline plugin (ServiceWorker, AppCache) for webpack (https://webpack.js.org/)
Stars: ✭ 4,444 (+6248.57%)
Mutual labels:  pwa, service-worker
Beats0.github.io
After a few hundred years, GitHub will become the world's largest digital cemetery, and most of the users have passed away. However, their homepages, projects and commit history describe what they did during their lifetime.
Stars: ✭ 23 (-67.14%)
Mutual labels:  pwa, service-worker
Pwa Book Cn
第一本 PWA 中文书
Stars: ✭ 3,498 (+4897.14%)
Mutual labels:  pwa, service-worker
Pushkit
All the required components to set up independent web push notifications 🎈
Stars: ✭ 45 (-35.71%)
Mutual labels:  pwa, service-worker
Elm Hn Pwa
Hacker News as a PWA built with Elm
Stars: ✭ 43 (-38.57%)
Mutual labels:  pwa, service-worker
Pwa Bugs
🚔 List of PWA Bugs and workarounds
Stars: ✭ 444 (+534.29%)
Mutual labels:  pwa, service-worker
Yinyue
🏖Version Of Progressive Web App ( Serverless )
Stars: ✭ 57 (-18.57%)
Mutual labels:  pwa, service-worker
Pwa Theme Woocommerce
E-commerce Progressive Web App Theme (React & Redux)
Stars: ✭ 382 (+445.71%)
Mutual labels:  pwa, service-worker
Upup
✈️ Easily create sites that work offline as well as online
Stars: ✭ 4,777 (+6724.29%)
Mutual labels:  pwa, service-worker
Angular Performance Checklist
⚡ Cheatsheet for developing lightning fast progressive Angular applications
Stars: ✭ 3,725 (+5221.43%)
Mutual labels:  pwa, service-worker
Vue Wordpress Pwa
An offline-first SPA using Vue.js, the WordPress REST API and Progressive Web Apps
Stars: ✭ 665 (+850%)
Mutual labels:  pwa, service-worker
Super Progressive Web Apps
SuperPWA helps to convert your WordPress website into Progressive Web Apps instantly. PWA (Progressive Web Apps) demo at : https://superpwa.com and Plugin :
Stars: ✭ 304 (+334.29%)
Mutual labels:  pwa, service-worker
Awesome Pwa
Awesome list of progressive web apps! (PR welcomed ;))
Stars: ✭ 3,814 (+5348.57%)
Mutual labels:  pwa, service-worker
Next Pwa
Zero config PWA plugin for Next.js, with workbox 🧰
Stars: ✭ 909 (+1198.57%)
Mutual labels:  pwa, service-worker
Navi
Open Source Project for Grow with Google Udacity Scholarship Challenge - Navigation app using offline first strategy and google maps api - To get started please refer to the README.md - CONTRIBUTING.md and the project Wiki
Stars: ✭ 51 (-27.14%)
Mutual labels:  pwa, service-worker

parcel-plugin-sw-precache

npm version

A Parcel plugin for generating a service worker that precaches resources.

Usage(Install)

npm install --save-dev parcel-plugin-sw-precache

Configurations

You DON'T have to configure anything to get it work. It just works as you expected after you installed.

Every time you build resources with Parcel, it will generate a service-worker.js file for you.

Internally it is using sw-precache

If you want to configure sw-precache, you can supply the configs by adding them in your package.json within the key sw-precache. See all available options at: https://github.com/GoogleChromeLabs/sw-precache#options-parameter

Additionally this plugin have the option "additionalCodeFile" if you want to add anything to your service-worker.js (for example a new event-handler). Add a filename relative to the entrypoint specified to Parcel.

For example:

{
  "name": "my-project",
  "version": "0.1.0",
  ...

  // my sw-precache configs
  "sw-precache": {
    "maximumFileSizeToCacheInBytes": 10485760,
    "additionalCodeFile": "addSome.js"
  }
}

Note: only files with the following extensions will be added to the precache : js, html, css, png, jpg, gif, svg, eot, ttf, woff, woff2, ogg, wav, mp3, wasm, webp, pdf

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].