-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add support for http://xip.io/ #41
Comments
That's an interesting problem. Are you using the server, proxy or just the snippet? |
I'm using the static server to build a living styleguide (so the fonts are important). More or less using the plugin out of the box: browser_sync:
serve:
bsFiles:
src: [
'.docs/*.html'
'.docs/css/*.css'
]
options:
watchTask: true
server:
baseDir: '.docs' |
Just looked at xip.io - that's a pretty cool service. I could easily add an option for this.
I think I'll put this in the next release - thanks for bringing it to my attention! |
That's fantastic, thanks for responding so quickly! |
Does this seem like it would work for you? |
Hey, I had some thoughts on this, I'm sorry I didn't write them down sooner as I didn't realize you would be so on top of this. 1.) It might make sense to have something more open ended like a string called "append". Instead of a boolean called "xip": append: 'xip.io' This might help future proof the feature if alternate services arise or potentially replace xip.io. Obviously, I'm not picky about this and you should do what you think is best, I just thought it might save you additional work down the road. 2.) The more time I've spent working on my project, I've noticed that if i'm using Just wanted to make those notes, but otherwise that solution looks great and would definitely work for me. |
Haha! I like to implement other people's ideas as soon as possible with the hope of increasing community contributions/ideas :)
|
In version 0.7.0 now with either
or simply
|
Is this suppose to work with local addresses? I have added *.xip.io to my typekit settings and enabled xip: true in my gulp file. My local address on the network is 192.168.1.75, when accessing this from my machine it's fine, from any other machine on the network it doesn't load typekit. Any insights? Has this functionality changed? |
Yes, @DanielTate, the exclusive purpose is to work with LAN addresses. Let me know if you've followed all of the steps in this article: http://welchcanavan.com/developing-locally-with-typekit-and-xip/ If you have, I'm not quite sure what could be going wrong, but I'll try to think of something. |
I ran in to a problem where typekit won't serve fonts because it needs some part of the address to be reliable. http://xip.io/ was the answer to that problem, but now if a server opens in the browser at
192.168.1.5:3002
i have to manually add192.168.1.5.xip.io:3002
, which is not the end of the world, but I can see it adding confusion down the road with other developers on my team. It would be great if this functionality could be added or—if this is already possible—if the functionality could be documented.Thanks.
The text was updated successfully, but these errors were encountered: