I 'd like to add something like
<metaproperty="og:image" content="./src/images/cover.png" /><metaname="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
webpack/html-loader#17 (comment)
<metaproperty="og:image" content="${require(`./src/images/cover.png`)}" /><metaname="twitter:image" content="${require(`./src/images/cover.png`)}" />All we have to do is minor change in html loader setting
loader: 'html?interpolate=require',
roadmanfong@48bb6cf
I 'd like to add something like
I notice that it didn't handle image inside the meta tag.
And I found a solution here
webpack/html-loader#17 (comment)
All we have to do is minor change in html loader setting
loader: 'html?interpolate=require',roadmanfong@48bb6cf