Files
sweet/packages/plugin-vite/tests/fixtures/vite_plugin_pwa/vite.config.ts
T
8b0d42b82a fix: register files generated by Vite plugins in static file cache (#3534)
Fixes #3487 

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 20:04:46 +00:00

28 lines
654 B
TypeScript

import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
import { VitePWA } from "vite-plugin-pwa";
export default defineConfig({
plugins: [
fresh(),
VitePWA({
// Minimal configuration to generate PWA files
registerType: "autoUpdate",
includeAssets: [],
manifest: {
name: "Fresh PWA Test",
short_name: "PWA Test",
description: "Testing vite-plugin-pwa with Fresh",
theme_color: "#ffffff",
},
workbox: {
globPatterns: ["**/*.{js,css,html}"],
},
devOptions: {
enabled: true,
type: "module",
},
}),
],
});