1.0.4 • Published 2 years ago

@jackdbd/eleventy-plugin-report-precache-manifest v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

eleventy-plugin-report-precache-manifest

npm version Snyk Vulnerabilities for npm package ci workflow codecov CodeFactor Quality Gate Status

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

OptionDefaultExplanation
reportNamereport-precache-manifest.jsonbasename of the generated report. You will find it in your Eleventy output directory (tipically _site).
verbosefalseWhether this plugin should output more information, or not.