Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"label": "Available Scripts",
"position": 7,
"link": {
"type": "generated-index",
"slug": "developer-documentation/building-your-application/patterns"
}
}

Original file line number Diff line number Diff line change
@@ -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.