fix(build): serve favicon + all res/ icons at their referenced /public paths
The static-copy step landed the android icons at dist/public/android/ (stripBase dropped the res/ segment), never copied public/res/apple/ or public/favicon.ico at all, and the manifest pointed at /res/android/ — so every PWA icon, apple-touch icon, og:image, and the favicon 404'd on the live server. Copy all of public/res -> dist/public/res and public/favicon.ico -> dist/public/, and point manifest.json icons at ./public/res/android/ — matching the /public/res and /public/favicon.ico paths index.html already uses. Verified in dist/. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+11
-2
@@ -38,9 +38,18 @@ const copyFiles = {
|
||||
rename: { stripBase: true },
|
||||
},
|
||||
{
|
||||
src: 'public/res/android',
|
||||
// All of public/res/ (android + apple icons, logos, svg) → dist/public/res/,
|
||||
// matching the /public/res/... paths used by index.html and manifest.json.
|
||||
// (The old android-only target stripped `res/` and landed at /public/android/,
|
||||
// so every icon 404'd — apple/ + favicon weren't copied at all.)
|
||||
src: 'public/res',
|
||||
dest: 'public/',
|
||||
rename: { stripBase: 2 },
|
||||
rename: { stripBase: 1 },
|
||||
},
|
||||
{
|
||||
src: 'public/favicon.ico',
|
||||
dest: 'public/',
|
||||
rename: { stripBase: 1 },
|
||||
},
|
||||
{
|
||||
src: 'public/locales',
|
||||
|
||||
Reference in New Issue
Block a user