sapegin / grunt-webfont

SVG to webfont converter for Grunt
MIT License
1.11k stars 210 forks source link

IE cache busting is incomplete #343

Open pmd-bgermain opened 8 years ago

pmd-bgermain commented 8 years ago

Hi,

I am using your grunt-webfont task in my process for building websites and I found that it does create a hash for the #iefix and I can't find a way to add it using the template and templateOptions of the grunt plugin.

Here is what I have : @font-face { font-family:"icons"; src:url("fonts/icons.eot?f30e627bd5abb297d045dd2dceeaa7f8"); src:url("fonts/icons.eot?#iefix") format("embedded-opentype"), url("fonts/icons.woff2?f30e627bd5abb297d045dd2dceeaa7f8") format("woff2"), url("fonts/icons.woff?f30e627bd5abb297d045dd2dceeaa7f8") format("woff"), url("fonts/icons.ttf?f30e627bd5abb297d045dd2dceeaa7f8") format("truetype"), url("fonts/icons.svg?f30e627bd5abb297d045dd2dceeaa7f8#icons") format("svg"); font-weight:normal; font-style:normal; }

I think we need something like this for cache busting : @font-face { font-family:"icons"; src:url("fonts/icons.eot?f30e627bd5abb297d045dd2dceeaa7f8"); src:url("fonts/**icons.eot?f30e627bd5abb297d045dd2dceeaa7f8#iefix**") format("embedded-opentype"), url("fonts/icons.woff2?f30e627bd5abb297d045dd2dceeaa7f8") format("woff2"), url("fonts/icons.woff?f30e627bd5abb297d045dd2dceeaa7f8") format("woff"), url("fonts/icons.ttf?f30e627bd5abb297d045dd2dceeaa7f8") format("truetype"), url("fonts/icons.svg?f30e627bd5abb297d045dd2dceeaa7f8#icons") format("svg"); font-weight:normal; font-style:normal; }

Thanks for your help

kgibb commented 7 years ago

Hi, I'm also seeing this issue. Any reason why the hash isn't added to IE?