Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline fonts path is wrong #24

Open
ronjb04 opened this issue Jun 20, 2018 · 1 comment
Open

inline fonts path is wrong #24

ronjb04 opened this issue Jun 20, 2018 · 1 comment
Labels

Comments

@ronjb04
Copy link

ronjb04 commented Jun 20, 2018

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

@thescientist13
Copy link
Collaborator

thescientist13 commented Jun 20, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants