plugin-pwa: Usage of placeholders in manifest.json allowing implementation of manifest.json for different deployment environments #10458
Labels
documentation
The issue is related to the documentation of Docusaurus
help wanted
Asking for outside help and/or contributions to this particular issue or PR.
Have you read the Contributing Guidelines on issues?
Description
Hello everyone,
I have noticed that users of the plugin-pwa often have to create manifest.json files for different environments, but this process is currently undocumented.
There are at least two possible approaches to this issue:
Create separate manifest.env.json files for each environment and copy the appropriate file during the build process.
Use a single manifest.json file that includes placeholders, which can be handled by Workbox options and passed to workbox.injectManifest().
Lets open further discussion on this topic and gather additional suggestions to on how to implement manifest.json for different environments.
Current Documentation: https://github.com/facebook/docusaurus/edit/main/website/docs/api/plugins/plugin-pwa.mdx
Thank you
Self-service
The text was updated successfully, but these errors were encountered: