Something went wrong while setting issue due date.
Meta tag with image url content
Closed
Meta tag with image url content
Created by: roadmanfong
I 'd like to add something like
<meta property="og:image" content="./src/images/cover.png" />
<meta name="twitter:image" content="./src/images/cover.png" />
I notice that it didn't handle image inside the meta tag. And I found a solution here https://github.com/webpack/html-loader/issues/17#issuecomment-241038572
<meta property="og:image" content="${require(`./src/images/cover.png`)}" />
<meta name="twitter:image" content="${require(`./src/images/cover.png`)}" />
All we have to do is minor change in html loader setting
loader: 'html?interpolate=require',
https://github.com/roadmanfong/create-react-app/commit/48bb6cf692ae401f8deba02cb53009be0f7a9b3e