Add Progressive Web App (PWA) support

Add PWA setup with vite-plugin-pwa, assets generator, and templates
Include CLI flag and interactive prompt option for PWA installation
This commit is contained in:
Aman Varshney
2025-03-22 13:05:45 +05:30
parent 9c53d77965
commit 66a47c7c61
11 changed files with 102 additions and 13 deletions

View File

@@ -0,0 +1,12 @@
import {
defineConfig,
minimal2023Preset as preset,
} from "@vite-pwa/assets-generator/config";
export default defineConfig({
headLinkOptions: {
preset: "2023",
},
preset,
images: ["public/logo.png"],
});