feat(17-02): install @vite-pwa/assets-generator, author logo.svg, add pwa-assets.config.ts
- 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
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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.
|
||||
})
|
||||
Reference in New Issue
Block a user