Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Grunt favicons

Featured Replies

Anybody using the Grunt favicons task, I'm having an issue making the favicon.ico transparent. seem's weird as I am supplying a transparent png24, and it's working fine for the other icons, apple-touch, favicon.png etc.

 

https://github.com/oblador/grunt-favicons/

 

This is how I have my options configured in grunt

 

favicons: {
options: {
html: 'img/build/icons/favicon.html',
HTMLPrefix: "img/build/icons/",
trueColor: true,
icoBackgroundColor: "-transparent"
},
icons: {
src: 'logo.png',
dest: 'img/build/icons'
}
},
Can anybody shed any light on why this might not be working? Thanks.
  • Author

No errors and it processes fine, generates all the icons. The issue is the favicon.ico that is generated has a white opaque background. The option icoBackGround color doesnt seem to do anything and ive tried it with various values. I need it to be transparent like the logo.png that is supplied is.

Edited by rbrtsmith

The Git repo you linked to has been forked from the original. They tried to make a pull request but it hasn't been merged.
https://github.com/gleero/grunt-favicons/pull/39

If you installed grunt-favicons from npm you wont have this option available.

Have you updated grunt-favicons locally with the added option?
https://github.com/oblador/grunt-favicons/commit/b6a0b51492ee11505a60e461f219c3cfb8c4ea05

  • Author

The Git repo you linked to has been forked from the original. They tried to make a pull request but it hasn't been merged.

https://github.com/gleero/grunt-favicons/pull/39

 

If you installed grunt-favicons from npm you wont have this option available.

 

Have you updated grunt-favicons locally with the added option?

https://github.com/oblador/grunt-favicons/commit/b6a0b51492ee11505a60e461f219c3cfb8c4ea05

 

Thanks for clearing that up Wynn. I can update it manually, but I gues I'd have to do this for every project, which is a little bit of a pain. I don't see why they don't merge the pull request as it's pretty common for transparent favicons.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.