- Add @vite-pwa/assets-generator@1.0.2 as devDependency in apps/pwa - Add pwa:icons script (pwa-assets-generator generate) to apps/pwa/package.json - Approve sharp build scripts in pnpm-workspace.yaml (required for @vite-pwa/assets-generator) - Hand-author apps/pwa/public/logo.svg: warm/rounded/at-home family scene with house, two adults, child, heart — square 512x512 viewBox, self-contained, text-free - Create apps/pwa/pwa-assets.config.ts with minimal2023Preset, images: ['public/logo.svg'], no overrideManifestIcons
11 lines
360 B
TypeScript
11 lines
360 B
TypeScript
import { defineConfig, minimal2023Preset } from '@vite-pwa/assets-generator/config'
|
|
|
|
export default defineConfig({
|
|
preset: {
|
|
...minimal2023Preset,
|
|
},
|
|
images: ['public/logo.svg'],
|
|
// Do NOT set overrideManifestIcons: true — the manifest is maintained by hand
|
|
// in vite.config.ts (plan 17-04); auto-override would stomp the explicit entries.
|
|
})
|