Offline plugin (ServiceWorker, AppCache) for webpack (https://webpack.js.org/)
offline-plugin
not working with terser-webpack-plugin
minification #436 (thanks @Bobgy)getRegistration()
in internal methods not honoring scope
option #439 (thanks @lilfolr)offline-plugin
with webpack-dev-server
and hot reloading #450 (thanks @ahlec)offline-plugin
not working with WASM modules and failing the build #410 (thanks @mstange)Special thanks to @GGAlanSmithee for taking care of the project, answering/reviewing issues and PRs, improving docs and tests of offline-plugin
. Thank you ❤️
Thanks @yesmeck for finding the issue!
(fuck npm 6)
Fix ServiceWorker.minify
option to automatically detect when optimization.minimize
is used and apply Uglify plugin (webpack 4+) https://github.com/NekR/offline-plugin/issues/379
Fixes incompatibility with hard-source-webpack-plugin
by utilizing newer (webpack 2+) loaders injection into NFM "after-resolve" https://github.com/mzgoddard/hard-source-webpack-plugin/issues/289
Fix usage of the plugin without options #377
AppCache: true
or more detailed AppCache
optionsServiceWorker.navigateFallbackURL
and ServiceWorker.navigateFallbackForRedirects
have been deprecated since 4.9.0
and now are dropped. Use appShell
option instead. Also see updated SPA example with appShell
option #335ServiceWorker.prefetchRequest.credentials
is now default to 'same-origin'
ServiceWorker.updateViaCache
option (reflecting the same option on ServiceWorker's register()
method)additional
caches not being added at all when one of them failed to load, preventing caches from being updated/refetched laterMany thanks to @ykzts for his great work on porting minify
option and UglifyJsPlugin
in general to work together with offline-plugin
and webpack 4. 🙌🙏❤️
Thanks to @GGAlanSmithee for helping with the docs throughout the releases and for his general guiding 👌
And the last, but not least: Thanks to our SPONSORS and BACKERS for supporting the project! You're the best! ⭐️🎉
isNotRedirectedResponse
function is used without an argument #370New features:
appShell
option. See docs here
ServiceWorker.navigationPreload
option. See docs here
Fixes:
Deprecations:
ServiceWorker.navigateFallbackURL
and ServiceWorker.navigateFallbackForRedirects
are now deprecated. Use appShell
or cacheMaps
option.Many thanks to @GGAlanSmithee for helping with and maintaining documentation of the project! 🎉