You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason why you don't support the ability to delete it? From #108 the reason I saw was it made it clear where the favicon should go, but if the user makes the conscious decision to remove it that should be fine from an educational perspective?
I'd like to remove it for two reasons:
It's very reminiscent of a dot file given its placement at the root directory. Because I'm not a fan of including dot files/configs with no explicit purpose my first reaction is to delete it.
I don't appreciate the forced branding aspect. When I start work on a project I don't usually have a logo, so I can't replace the favicon.ico, but I'd still like to hide React branding from the end user. If I can't delete the favicon, the only option is to replace it which is a rabbit hole of its own.
Thanks for the project though, it's an amazing productivity boost and the constraints were very well selected. This just made me a little frustrated 😉
We want to figure out how to make it work so that the user can add apple touch icons and other assets to HTML. Not just a favicon.
Currently favicon is treated magically. If we let you remove it, you might think it worked because it was in root directory and referenced from HTML. So you might delete it but that will be your mental model, and you might later try adding it with a few more files like apple touch icons but they won't work.
I want to make sure we have a good story about including "additional" files as part of the build. When we figure out how to do it, favicon will probably be treated just like another file, and you will be able to add and delete it at any time. Until we do, I'd like to treat it as a required file so you at least now it is handled specially—until it's not.
I don't know whether this is the right place to suggest this, but I've used https://github.com/jantimon/favicons-webpack-plugin for a couple of projects when needing to support multiple device icons and it worked quite nicely.
The user could then opt in to automatically generated favicons by dropping a .png into a certain folder which the Webpack config looks at.
I haven't dug into the internals of create-react-app yet, so I'm not sure whether this is viable.
Activity
gaearon commentedon Jul 29, 2016
Please see #108.
Deleting it is not currently supported.
If we add this, we will do this as part of #28 in the future.
calebmer commentedon Jul 30, 2016
Is there a reason why you don't support the ability to delete it? From #108 the reason I saw was it made it clear where the favicon should go, but if the user makes the conscious decision to remove it that should be fine from an educational perspective?
I'd like to remove it for two reasons:
Thanks for the project though, it's an amazing productivity boost and the constraints were very well selected. This just made me a little frustrated 😉
gaearon commentedon Jul 30, 2016
I think the reason is explained here: #108 (comment).
We want to figure out how to make it work so that the user can add apple touch icons and other assets to HTML. Not just a favicon.
Currently favicon is treated magically. If we let you remove it, you might think it worked because it was in root directory and referenced from HTML. So you might delete it but that will be your mental model, and you might later try adding it with a few more files like apple touch icons but they won't work.
I want to make sure we have a good story about including "additional" files as part of the build. When we figure out how to do it, favicon will probably be treated just like another file, and you will be able to add and delete it at any time. Until we do, I'd like to treat it as a required file so you at least now it is handled specially—until it's not.
calebmer commentedon Jul 31, 2016
Sounds good 👍
MarcelMichau commentedon Aug 1, 2016
I don't know whether this is the right place to suggest this, but I've used https://github.com/jantimon/favicons-webpack-plugin for a couple of projects when needing to support multiple device icons and it worked quite nicely.
The user could then opt in to automatically generated favicons by dropping a .png into a certain folder which the Webpack config looks at.
I haven't dug into the internals of create-react-app yet, so I'm not sure whether this is viable.
P.S. Good job on create-react-app btw. :)
Load favicon through html-loader.
Load favicon through html-loader. (#428)
calebmer commentedon Aug 13, 2016
🎉
gaearon commentedon Sep 2, 2016
Fix is out in 0.3.0.
Load favicon through html-loader. (facebook#428)
Load favicon through html-loader. (facebook#428)