Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
parcel-plugin-workbox-rev
Advanced tools
An updated plugin for Parcel to generate a service worker with Workbox
An updated plugin for Parcel to generate a service worker with Workbox, derived from Anders Dahnielson's parcel-plugin-workbox.
You can either install by running yarn (recommended)
yarn add parcel-plugin-workbox-rev --dev
or use npm
npm install parcel-plugin-workbox-rev --save-dev
When you build resources with Parcel, the plugin will generate a service worker sw.js
and insert it into your project's index.html
entry file.
You can customize the settings by adding a workbox
section to your package.json
.
"workbox": {
importScripts: ['./worker.js'], // scripts to import into `sw.js`
globDirectory: './dist', // directory to cache (usually output dir)
globPatterns: [ // file types to include
'**/*.{css,html,js,gif,ico,jpg,png,svg,webp,woff,woff2,ttf,otf}'
}
Workbox requires at least one import script to be defined. By default, a worker.js
file, where you can write the logic for your service worker, will be read from your project's root directory and imported into sw.js
unless you change this setting. Additionally, a CDN version of Google Workbox is imported automatically.
Note: If you have this plugin active during development, you will need to either disable or manually delete the service worker to bypass caching.
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE.md file for details.
FAQs
An updated plugin for Parcel to generate a service worker with Workbox
We found that parcel-plugin-workbox-rev demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.