@jackdbd/eleventy-plugin-report-precache-manifest

1.0.4 • Public • Published

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.

Table of Contents

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.

Dependents (0)

Package Sidebar

Install

npm i @jackdbd/eleventy-plugin-report-precache-manifest

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

11.9 kB

Total Files

5

Last publish

Collaborators

  • jackdbd