Skip to content

Commit 0e5e420

Browse files
committed
Revert "chore: remove unplugin-favicons, add pwa-asset-generator under the root folder"
This reverts commit 14b5c9c.
1 parent b963b0d commit 0e5e420

File tree

4 files changed

+443
-814
lines changed

4 files changed

+443
-814
lines changed

apps/frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"react-dom": "^19.1.0"
3636
},
3737
"devDependencies": {
38+
"@anolilab/unplugin-favicons": "^1.0.5",
3839
"@tanstack/router-devtools": "^1.114.31",
3940
"@tanstack/router-plugin": "^1.114.31",
4041
"@testing-library/jest-dom": "^6.6.3",

apps/frontend/vite.config.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from "vite";
22
import react from "@vitejs/plugin-react";
33
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
4-
// import unpluginFavicons from "@anolilab/unplugin-favicons/vite";
4+
import unpluginFavicons from "@anolilab/unplugin-favicons/vite";
55

66
// https://vitejs.dev/config/
77
export default defineConfig({
@@ -15,22 +15,22 @@ export default defineConfig({
1515
plugins: [
1616
react(),
1717
TanStackRouterVite({ quoteStyle: "double", semicolons: true }),
18-
// unpluginFavicons({
19-
// logo: "./public/logo.svg",
20-
// inject: true,
21-
// appName: "LEMON",
22-
// appShortName: "LEMON",
23-
// favicons: {
24-
// theme_color: "#FFC845",
25-
// icons: {
26-
// android: true,
27-
// appleIcon: true,
28-
// favicons: true,
29-
// windows: true,
30-
// yandex: true,
31-
// appleStartup: false,
32-
// },
33-
// },
34-
// }),
18+
unpluginFavicons({
19+
logo: "./public/logo.svg",
20+
inject: true,
21+
appName: "LEMON",
22+
appShortName: "LEMON",
23+
favicons: {
24+
theme_color: "#FFC845",
25+
icons: {
26+
android: true,
27+
appleIcon: true,
28+
favicons: true,
29+
windows: true,
30+
yandex: true,
31+
appleStartup: false,
32+
},
33+
},
34+
}),
3535
],
3636
});

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"nx": "^20.7.0",
3636
"prettier": "^3.5.3",
3737
"prettier-plugin-astro": "^0.14.1",
38-
"pwa-asset-generator": "^8.0.4",
3938
"typescript-eslint": "^8.29.0"
4039
},
4140
"engines": {

0 commit comments

Comments
 (0)