Fixes #3487 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
654 B
TypeScript
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",
|
|
},
|
|
}),
|
|
],
|
|
});
|