Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#React

Advanced AI Prompt for Vite PWA and Service Worker Performance

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-ai-prompt-vite-pwa-service-worker.txt
Act as a Principal Mobile Web Expert. Engineer the `vite-plugin-pwa` configuration for a massive React application with the mandate of achieving a perfect 100/100 Lighthouse PWA score. You must programmatically implement a sophisticated [CACHING_STRATEGY] (e.g., Stale-While-Revalidate for dynamic API JSON data, and Cache-First for static CSS/JS assets) directly within the Workbox configuration object. Architect a custom service worker routing strategy that effortlessly intercepts failed network requests and serves the [OFFLINE_FALLBACK] HTML shell. Force the application to execute immediate cache invalidation and UI updates via a strict 'Prompt for Update' or 'AutoUpdate' client-side logic. Detail the exact rollup configurations necessary to aggressively minimize the final Service Worker JavaScript bundle size.

Example Text Output

"The AI will output a detailed VitePWA configuration object including workbox options and manifest definitions for a high-performance PWA."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Vite PWA and Service Worker Performance" prompt used for?

The AI will output a detailed VitePWA configuration object including workbox options and manifest definitions for a high-performance PWA.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.