[英]How to update webpack config for a react project created using create-react-app?
[英]How to delete "created using create-react-app" from links?
我試圖將我的投資組合的鏈接發布到linkedin,它總是顯示“使用react app創建的網站”作為描述,這絕對不會讓它看起來很專業。 它部署在我的域中,但有什么方法可以擺脫域鏈接上的所有 create-react-app 默認內容?
更改公共文件夾中 index.html 文件中的描述和標題,然后重新構建您的應用程序
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<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"
/>
<link href="https://fonts.googleapis.com/css?family=Muli:300,400,600,700" rel="stylesheet">
<title>React App</title>
嗨,我最近今晚遇到了這個。
您需要將這些元標記添加到 index.html 的標題中,並且圖像大小應至少為 1200x627(根據linkedin文檔)
<head>
<meta property="og:title" content="*TITLE*" />
<meta property="og:image" content="%PUBLIC_URL%/linkedin.png" />
<meta property="og:description" content="*DESCRIPTION*" />
</head>
如果您在 LinkedIn 識別新標題時仍然遇到問題,請再次插入 url,但在 url 末尾添加一個隨機參數。
因此,如果您的網站網址是: https : //www.example.com
嘗試使用空參數再次添加鏈接: https : //www.example.com?1
這應該會強制linkedin 拉出新的頭部數據。
您需要更改公共文件夾中的 index.htm 文件,標題和元標記將包含此默認標題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.