'修改ico图标'

This commit is contained in:
eric
2025-12-04 12:43:53 +08:00
parent ce4b862fe0
commit 1563f4c5a7
3 changed files with 34 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
import path from "path";
// const { GenerateSW } = require("workbox-webpack-plugin");
import favicon from './images/planet.ico';
const WebpackObfuscator = require("webpack-obfuscator");
const config = {
@@ -127,7 +128,7 @@ const config = {
allowedHosts: ["nomadro.com", "localhost", ".nomadro.com","hackrobot.cn",".hackrobot.cn"], // 允许所有 *.nomadyt.com 子域访问
},
htmlPluginOption: {
favicon: path.resolve(__dirname, "..", "src", "images", "dgnomad.png"), // 同样处理 favicon 路径
favicon: path.resolve(__dirname, "..", "src", "images", "planet.ico"), // 同样处理 favicon 路径
meta: {
"cache-control": "no-cache, no-store, must-revalidate",
pragma: "no-cache",