'webpack设置ico'

This commit is contained in:
hackrobot
2025-03-26 18:15:38 -05:00
parent af9325bfd9
commit d94b011163
6 changed files with 51 additions and 37 deletions

View File

@@ -43,14 +43,23 @@ const config = {
}, },
}, },
h5: { h5: {
webpackChain (chain) { webpackChain(chain) {
chain.module chain.module
.rule('markdown') .rule("markdown")
.test(/\.md$/) .test(/\.md$/)
.use('raw-loader') .use("raw-loader")
.loader('raw-loader') .loader("raw-loader")
.end(); .end();
chain.module
.rule("ico")
.test(/\.ico$/)
.use("file-loader")
.loader("file-loader")
.options({
name: "static/images/[name].[ext]",
});
}, },
esnextModules: ["taro-ui"], esnextModules: ["taro-ui"],
publicPath: "/", publicPath: "/",
staticDirectory: "static", staticDirectory: "static",
@@ -86,20 +95,20 @@ const config = {
// host: 'nomad.hackrobot.cn', // 替换为您的域名 // host: 'nomad.hackrobot.cn', // 替换为您的域名
// port: 10087, // 选择一个适当的端口号 // port: 10087, // 选择一个适当的端口号
proxy: { proxy: {
'/api/': { "/api/": {
target: JSON.parse('"http://localhost:8700"'), //本地调试端口 target: JSON.parse('"http://localhost:8700"'), //本地调试端口
pathRewrite: { pathRewrite: {
'^/api/': '/' "^/api/": "/",
}, },
changeOrigin: true changeOrigin: true,
} },
}, },
// 允许特定域名访问 // 允许特定域名访问
allowedHosts: [ allowedHosts: [
// 'bot.hackrobot.cn' // 'bot.hackrobot.cn'
'nomadyt.com' "nomadyt.com",
], ],
} },
}, },
}; };

BIN
src/images/youtube.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@@ -9,14 +9,14 @@
<meta name="apple-mobile-web-app-status-bar-style" content="white"> <meta name="apple-mobile-web-app-status-bar-style" content="white">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" > <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
<!-- <link rel="apple-touch-icon" href="/static/images/images/touxiang.png" /> --> <!-- <link rel="apple-touch-icon" href="/static/images/images/touxiang.png" /> -->
<link rel="apple-touch-icon" href="/static/images/images/youtube.svg" /> <link rel="apple-touch-icon" href="/static/images/images/youtube.ico" />
<link <link
rel="icon" rel="icon"
sizes="192x192" sizes="192x192"
href="/static/images/images/youtube.svg" href="/static/images/images/youtube.ico"
/> />
<!-- <link rel="icon" type="image/x-icon" href="/static/images/youtube.ico"> -->
<title>Youtube运营笔记</title> <title>Youtube运营笔记</title>
<meta name="description" content="Youtube运营笔记"> <meta name="description" content="Youtube运营笔记">
<meta property="og:description" content="Youtube运营笔记"> <meta property="og:description" content="Youtube运营笔记">

View File

@@ -1,3 +1,3 @@
export default { export default {
navigationBarTitleText: '一人公司方法论' navigationBarTitleText: '油管运营笔记'
} }

View File

@@ -47,6 +47,9 @@ import youtube4 from "../../images/yt4.svg";
import ytGpt from "../../images/ytGpt.png"; import ytGpt from "../../images/ytGpt.png";
import demo from "../../images/demo.svg"; import demo from "../../images/demo.svg";
import youtubeIco from "../../images/youtube.ico";
// export default class Index extends Component { // export default class Index extends Component {
const Index = () => { const Index = () => {
@@ -410,11 +413,10 @@ const Index = () => {
</View> </View>
</View> </View>
</View> </View>
</View> {/* <View className="footer_div"></View> */}
{/* <View className="footer_div"></View> */} {/* <View className="footer">
<View className="footer"> <View>Copyright © 2025 </View>
{/* <View>《Youtube运营笔记》</View> */} </View> */}
<View>Copyright © 2025 </View>
</View> </View>
</> </>
); );

View File

@@ -24,7 +24,7 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
// background-color: rgb(208, 255, 0); // background-color: rgb(208, 255, 0);
.left_title { .left_title {
font-size: 50px; font-size: 50px;
font-weight: 700; font-weight: 700;
@@ -42,7 +42,6 @@
// align-items: center; // align-items: center;
// justify-content: space-around; // justify-content: space-around;
// background-color: yellow; // background-color: yellow;
} }
.left_btn { .left_btn {
margin-top: 40px; margin-top: 40px;
@@ -81,7 +80,9 @@
@media (min-width: 1536px) { @media (min-width: 1536px) {
.index { .index {
padding: 100px; // padding: 100px;
// height: 100vh;
position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@@ -170,19 +171,21 @@
display: none; display: none;
} }
} }
}
}
.footer { .footer {
position: absolute; // position: absolute;
bottom: 0px; position: fixed;
display: flex; bottom: 0px;
flex-direction: column; display: flex;
align-items: center; flex-direction: row;
justify-content: center; align-items: center;
width: 100%; justify-content: center;
height: 60px; width: 100%;
// margin-bottom: 20px; height: 60px;
font-size: 14px; // margin-bottom: 20px;
// background-color: yellow; font-size: 14px;
background-color: yellow;
}
}
} }