Logo BrowserUX SEO Files

BrowserUX Inject SW Assets

A simple and effective solution to ensure full offline support in your Vite + PWA applications.

BrowserUX Inject SW Assets is a lightweight and smart Vite plugin designed to automatically inject your static files (images, JSON, etc.) into your custom service worker. It perfectly complements the injectManifest strategy from vite-plugin-pwa by making sure all files not detected by Workbox are properly precached. It provides a complete offline experience, with no complex configuration or overlooked assets.

Download v1.0.2

Plugin for Vite
See the CHANGELOG

npm install vite-plugin-inject-sw-assets

Features