A plugin for your Webpack build process, helping you generate a manifest of local files that workbox-sw should precache.
Overall
score
80%
Produce configuration for generating a service worker that loads specific named compilation chunks via runtime imports while keeping those chunk assets out of the precache manifest.
["analytics", "vendor"], the generated service worker imports the JS assets for those chunks at startup and those assets are absent from the precache manifest entries. @test@generates
export function buildChunkImportOptions(chunkNames, options);
/**
* @param {string[]} chunkNames - Named chunks whose compiled JS assets should be loaded via import scripts at service worker startup.
* @param {Object} [options]
* @param {string[]} [options.additionalImports] - Extra scripts (URLs or paths) that must be imported ahead of the chunk assets.
* @param {(message: string) => void} [options.onWarning] - Called with a human-readable warning when a requested chunk cannot supply a script.
* @returns {Object} - Configuration object ready to be passed into the service worker bundling plugin.
*/Provides the service worker bundling plugin and runtime required to generate a precache manifest and import runtime scripts. @satisfied-by
Build tool used to produce named chunks referenced by the service worker configuration. @satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-workbox-webpack-pluginevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10