npm workbox-webpack-plugin 3.6.1
Workbox v3.6.1

latest releases: 7.0.0, 6.6.1, 6.6.0...
6 years ago

🎉 What's New?

Added the disable() method to workbox.navigationPreload

  • workbox.navigationPreload provides an enable() method to enable navigation preload, but it did not provide a way to disable it (without invoking the underlying service worker APIs). Now developers can call workbox.navigationPreload.disable() to disable navigation preload. (#1651)

The method option can now be used for runtime caching via generateSW()

  • Incorrect validation logic was preventing the method option from being used by runtime caching configuration in generateSW(). Thanks to @chrisdns, this has been fixed! (#1638)

Bug fixes and ergonomic improvements

  • Using workbox.expiration.Plugin with purgeOnQuotaError set to true would result in an error. Thanks to @salmoro for discovering and fixing the issue! (#1643).
  • Plugin lifecycle callbacks previously were not called with the event that triggered them, so developers writing custom plugins could not access any information about the event in those callback. Now all plugin callback are passed the event object (when available). (#1640)
  • The workbox-streams package's strategy() method is exposed on the browser build of workbox.streams that gets loaded by the workbox-sw loader, but it wasn't exported by the module in a way that was accessible to module bundlers. Now it's possible to import {strategy} from workbox-streams/strategy.mjs. (#1635).

📖 Learn More

Check out our docs @ developers.google.com/web/tools/workbox/

Don't miss a new workbox-webpack-plugin release

NewReleases is sending notifications on new releases.