- Upgrade to Workbox v5
- Allow both next-offline defaults and custom workboxOpts to be used together
- Stop including examples and tests in NPM module
- When running in dev mode exportPathMap should also be executed
- Upgrade workbox-webpack-plugin from 3.6.3 to 4.3.1
- add new transformManifest function that allows you to provide a function to modify the manifest, and add/remove items which will be pre-cached.
- add support for workboxOpts.importsDirectory
- when
generateInDevMode
is true, dont add register-sw-compiled to bundle many times
- Ensure we're not modifying config.entry during development when generateInDev is false
- remove object property shorthand syntax for more ES5 compatibility
- remove default function argument in favor of an ES5 compatible way of defaulting
- remove arrow function in favor of function keyword in runtime.js to prevent IE11 exception
- default scope option to
/
- add
generateInDevMode
to next-offline options allowing service worker be generated and registered during development
- add
scope
to next-offline options allowing service worker scope to be modified for automatically registered service-workers - add
examples/
directory with Now 1.0 and Now 2.0 examples - fix handling absolute paths by using
path.resolve()
instead ofpath.join()