@jackdbd/eleventy-plugin-report-precache-manifest
v1.0.4
Published
Eleventy plugin that generates a report about your service worker precache manifest after Eleventy has finished building your site
Downloads
3
Maintainers
Readme
eleventy-plugin-report-precache-manifest
Generate a report about your service worker precache manifest after Eleventy has finished building your site.
What is this?
This library is an Eleventy plugin that will let you inspect the precache manifest of your service worker. The service worker must be in your Eleventy output directory, and must have been generated by Workbox, for example by the generateSW
method of the workbox-build package.
Why?
TODO
Installation
Install the plugin with your package manager of choice (npm, yarn, pnpm).
npm i -D @jackdbd/eleventy-plugin-report-precache-manifest
Add this plugin to your Eleventy configuration file (tipically .eleventy.js
):
const reportPrecacheManifest = require('@jackdbd/eleventy-plugin-report-precache-manifest');
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(reportPrecacheManifest);
};
Options
| Option | Default | Explanation |
| --- | --- | --- |
| reportName
| report-precache-manifest.json
| basename of the generated report. You will find it in your Eleventy output directory (tipically _site
). |
| verbose
| false
| Whether this plugin should output more information, or not. |