-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Automatically generate favicons #470
Comments
Is the ImageMagick requirement going to be a problem? |
@haydenbleasel Is there any way to define icons for different platforms? i.e. a different icon for Android vs iOS |
@gauntface Unfortunately not, but for good reason. From #442:
|
@haydenbleasel Ah ok. Didn't see that was the trend people wanted - single icon by default - with multiple icons as an alternative with comments. (Shame that the multiple sources isn't supported as I basically have to opt for suitable for a specific platform). I'm trying to set up the index.html output but it doesn't seem to be working - any ideas what I might be doing wrong?
Also something I hadn't considered when we first discussed any of this - I'd love to have favicons in a specific folder, but have a favicon.ico always added to the root as a last resort for browsers. At the moment I can presumably only have favicons either all in root or all in a specific folder. |
Might be a callback thing - Favicons is currently just a Node module so we need to handle callbacks with Gulp e.g.
Note the |
@haydenbleasel I've just tried that out and I'm still not getting anything added. Could it be something around the HTML being minified?
|
Add |
Just an FYI: I love the logging flag.
|
Yeah so all I can gather from that so far is that you should update the local Gulp (just in case) and this seems to be an issue:
I don't actually know what's happening there without context - if you email me your Gulpfile I can check it out thoroughly? |
I've googled that issue and it seems to be around Sass. We are in the middle of changing to Libsass so this should get fixed with that change. I've updated Gulp and still the same issue. All of this is going on in the favicon-task branch. Gulp File here: https://github.com/google/web-starter-kit/blob/favicon-task/gulpfile.js At the moment I'm just running the commands 'gulp' and 'gulp favicon' manually to try and get this working. |
@gauntface are you working against latest master (which has libsass landed)? Might be able to help us figure out if this is Sass related or something else. |
No I'm working on Material-sprint |
Changes for libsass in case you need them: 5b860b2 (followed by an |
Now on this branch (https://github.com/google/web-starter-kit/tree/favicon-task-master) same log.
|
@gauntface is that log reflected a successful build or are you still running into errors? |
@addyosmani Nope still work to be done here. I'm getting an errorless build, BUT the index.html file isn't getting any of the icons. I'm assuming I'm using the plugin wrong. @haydenbleasel any ideas? At the moment I'm just testing by running 'gulp' and then 'gulp favicon', my favicon task is:
The output from the command line is:
Is there anything in particular I need to do to get the html output into the index.html file (i.e. any special comments)? |
Found the issue. I've stupidly put
@gauntface Fix is up, grab the latest version and try it out. Sorry about the trouble. |
Classic me being the pain in the butt. Thanks for looking into this @haydenbleasel. |
Forgot to answer a previous question:
With the new Favicons, there's going to be a larger selection of icon types - the majority of which are produced by RFG. Since his server does all the conversions, you won't need ImageMagick. However, I'm adding some new stuff that aren't technically icons e.g. Apple Launch Images that will require ImageMagick as they're done on Favicons. So you can pretty much just |
@addyosmani @gauntface It's all done! The new readme is a bit of a mouthful but pretty basic. Philippe ended up going with platform-based icons so everything's coming up Matthew lol. |
Yay! Thanks @haydenbleasel! |
@addyosmani Favicons is in a good place now. Has everything you need - better configuration, local generation, pure Javascript, etc. |
This is surely a bit out of topic, but I wanted to let you know that I've just added GWSK support to RealFaviconGenerator. To use it you basically:
This first shot patches the existing It's not really a new development, more a rework of what has been already done for Grunt, RoR... Right now this solution is 100% RFG, making it an independent initiative. But I would love to make @haydenbleasel's favicons and RFG work together (a long due TODO) so users could switch from local to remove generation with a single switch. Alright, you can go back to work :) |
Hi @phbernard! I see WSK has a |
🐛 Bankruptcy: Closing due to inactivity. |
Let's add the automated favicon generation support discussed in #442 🍨. We'll be using https://github.com/haydenbleasel/favicons to do the trick.
The text was updated successfully, but these errors were encountered: