How to use the workbox-build.getFileManifestEntries function in workbox-build

To help you get started, we’ve selected a few workbox-build examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github davideast / hnpwa-firebase / src / build / build.ts View on Github external
function generateEntries() {
  return workbox.getFileManifestEntries({
    globDirectory: './src/static',
    globPatterns: ['**\/*.{html,js,css,png,jpg,json}'],
    globIgnores: ['sw.main.js','404.html', 'images/icons/**/*', 'index.html'],
  });
}

workbox-build

A module that integrates into your build process, helping you generate a manifest of local files that workbox-sw should precache.

MIT
Latest version published 10 days ago

Package Health Score

91 / 100
Full package analysis