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

Added functionality to ignore fonts #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

developersheffield
Copy link

The regex incorrectly match the format() part of a font url and causes gulp to crash out. This ignores URL's that might cause this issue, be better to fix the regex but that opens up other problems such as where the font URL already requires a querystring e.g. "?#iefix"

@christianjsanders
Copy link

Hi!

Any chance we get could this merged in please? :) Could you also add || url.indexOf(".svg") to the IF on ln 38 like so?

var isFont = url.indexOf(".eot") > -1 || url.indexOf(".woff") > -1 || url.indexOf(".ttf") > -1 || url.indexOf(".otf") || url.indexOf(".svg") > -1;

Many thanks!

@gothy
Copy link
Owner

gothy commented Jul 10, 2017

Folks, pls have a look at #6

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

Successfully merging this pull request may close these issues.

3 participants