diff --git a/docs/developer-documentation/building-your-application/available-scripts/_category_.json b/docs/developer-documentation/building-your-application/available-scripts/_category_.json new file mode 100644 index 0000000..c48cb46 --- /dev/null +++ b/docs/developer-documentation/building-your-application/available-scripts/_category_.json @@ -0,0 +1,9 @@ +{ + "label": "Available Scripts", + "position": 7, + "link": { + "type": "generated-index", + "slug": "developer-documentation/building-your-application/patterns" + } + } + \ No newline at end of file diff --git a/docs/developer-documentation/building-your-application/service-worker-removal.md b/docs/developer-documentation/building-your-application/service-worker-removal.md new file mode 100644 index 0000000..5c02cc8 --- /dev/null +++ b/docs/developer-documentation/building-your-application/service-worker-removal.md @@ -0,0 +1,22 @@ +--- +sidebar_position: 8 +title: Service Worker Removal +--- + +### Removing the Preconfigured Service Worker + +> **Disclaimer:** The service worker in this template is designed to provide offline functionality and improve app performance. Removing it is generally not recommended; however, if needed, follow these steps: + +1. **Uninstall the Service Worker Plugin** + Run the following command to uninstall `vite-plugin-pwa`: + ```bash + npm uninstall vite-plugin-pwa + ``` +2. **Remove Configuration from Vite** + Open `vite.config.js` and remove `vite-plugin-pwa`. + +3. **Remove Service Worker Setup** + In your `src/index.js` file, remove the service worker configurations. + +After these steps, the service worker will be removed from the application. +