React项目修改标签页图标和标题
时间:2021-03-14 14:06:29
收藏:0
阅读:478
一、修改标签页图标:
在项目根目录打开cmd
使用vscode打开项目根目录public文件夹下的index.html:
code public/index.html
将
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
改为
<link rel="icon" href="%PUBLIC_URL%/my-logo.svg" />
二、修改标签页标题:
在项目根目录打开cmd
使用vscode打开项目根目录public文件夹下的index.html:
code public/index.html
将
<title>React App</title>
改为
<title>my-title</title>
原文:https://www.cnblogs.com/starlog/p/14531893.html
评论(0)