mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 15:29:32 +02:00
refactor(pwa): remove reloadPopup option in favor of swizzling (#7422)
* refactor(pwa): remove reloadPopup option in favor of swizzling * restore code splitting * add deprecation
This commit is contained in:
parent
be912c698a
commit
1a5e33c717
6 changed files with 19 additions and 43 deletions
|
@ -46,16 +46,6 @@ declare module '@docusaurus/plugin-pwa' {
|
|||
* @see https://developers.google.com/web/tools/workbox/reference-docs/latest/module-workbox-build#.injectManifest
|
||||
*/
|
||||
injectManifestConfig: InjectManifestOptions;
|
||||
/**
|
||||
* Module path to reload popup component. This popup is rendered when a new
|
||||
* service worker is waiting to be installed, and we suggest a reload to
|
||||
* the user.
|
||||
*
|
||||
* Passing `false` will disable the popup, but this is not recommended:
|
||||
* users won't have a way to get up-to-date content.
|
||||
* @see {@link @theme/PwaReloadPopup}
|
||||
*/
|
||||
reloadPopup: string | false;
|
||||
/**
|
||||
* Array of objects containing `tagName` and key-value pairs for attributes
|
||||
* to inject into the `<head>` tag. Technically you can inject any head tag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue