首页 > 技术文章 > React项目修改标签页图标和标题

starlog 2021-03-14 11:33 原文

一、修改标签页图标:

 

在项目根目录打开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>

 

推荐阅读