'修改icon'

This commit is contained in:
WLT\Eric.hu
2025-03-27 14:26:29 +08:00
parent 7a74bc3c11
commit 699c2dff06
2 changed files with 2802 additions and 4222 deletions

View File

@@ -1,3 +1,4 @@
import path from 'path'
const { GenerateSW } = require("workbox-webpack-plugin");
const config = {
@@ -23,27 +24,7 @@ const config = {
cache: {
enable: false, // Webpack 持久化缓存配置建议开启。默认配置请参考https://docs.taro.zone/docs/config-detail#cache
},
mini: {
postcss: {
pxtransform: {
enable: true,
config: {},
},
url: {
enable: true,
config: {
limit: 1024, // 设定转换尺寸上限
},
},
cssModules: {
enable: false, // 默认为 false如需使用 css modules 功能,则设为 true
config: {
namingPattern: "module", // 转换模式,取值为 global/module
generateScopedName: "[name]__[local]___[hash:base64:5]",
},
},
},
},
h5: {
webpackChain(chain) {
if (
@@ -147,6 +128,11 @@ const config = {
"nomadyt.com",
],
},
htmlPluginOption: {
favicon: path.resolve(__dirname, "..", "src", "images", "youtube.ico"), // 同样处理 favicon 路径
},
target: ["web", "browserslist:> 0.25%, not dead"],
},
};

6996
yarn.lock

File diff suppressed because it is too large Load Diff