Integrated the vite-plugin-pwa to enable Progressive Web App functionality. Added service worker registration, manifest configuration, and necessary assets like icons and favicon. This enhances offline capabilities and user experience.
8 lines
249 B
JavaScript
8 lines
249 B
JavaScript
import React from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import App from "./App.jsx";
|
|
import { registerSW } from "virtual:pwa-register";
|
|
|
|
createRoot(document.getElementById("root")).render(<App />);
|
|
registerSW({ immediate: true });
|