html-critical-webpack-plugin
html-critical-webpack-plugin copied to clipboard
inline fonts path is wrong
its showing ../../../username/appData/fonts/fontname.woff and etc..
any workaround for this?
If i disable the html-critical-webpack-plugin, the fonts path are proper.
below is my font.css
@font-face {
font-family: 'fontname';
src: url('../assets/fonts/fontname.eot');
src: url('../assets/fonts/fontname.eot?#iefix') format('embedded-opentype'),
url('../assets/fonts/fontname.woff2') format('woff2'),
url('../assets/fonts/fontname.woff') format('woff'),
url('../assets/fonts/fontname.ttf') format('truetype'),
url('../assets/fonts/fontname.svg#fontname') format('svg');
font-weight: 600;
font-style: normal;
}
I hope someone could suggest a solution or a workaround.
Thanks
Thanks @ronjb04 , but it's hard for me to envision what you're describing going on what you've provided.
Could you please provide more information, like
- full webpack configuration
- webpack version
- version of HtmlCriticalWebpackPlugin you're using
- other relevant plugins / loaders (like any SASS / LESS / CSS loaders you're using, if not)
Even better would be a simple test case to reproduce the issue. 🌟
Thanks!