[英]React Icon showing up even after removing it
我已經從 create-react-app 的index.html
文件中刪除了默認的 React 圖標,但它仍然顯示。
這是index.html
文件的代碼
<!DOCTYPE html>
<html lang="en" class="h-full bg-gray-50">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<title>ResumeBuilder</title>
</head>
<body class="h-full">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
create-react-app public 的文件夾結構:
我怎樣才能刪除它?
一個簡單的快捷方式可能會有所幫助:Ctrl+F5 將為您的頁面執行強制緩存清除。
您應該將 reactjs 圖標替換為您的網站徽標圖標
您可以輕松地在線生成一個網站圖標,有很多這樣的網站 - https://www.favicon-generator.org/
打開上面的站點 select 您的站點徽標並生成一個圖標,然后下載 zip 文件並解壓縮 zip 文件並從生成的文件夾中復制徽標圖標並將其替換為 React js 默認圖標。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.