-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Build fails when favicon is missing #291
Comments
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 😉 |
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. |
Sounds good 👍 |
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. Fixes #291. * Add test for *.ico in e2e test suite * Configure html-loader to process <link href="..."> * Address feedback on html-loader inclusion. * Place favicon.ico at the root of the build dir * Make comment style consistent between prod and dev webpack configs * Fix html-loader config in dev mode
🎉 |
Fix is out in 0.3.0. |
* Load favicon through html-loader. Fixes facebook#291. * Add test for *.ico in e2e test suite * Configure html-loader to process <link href="..."> * Address feedback on html-loader inclusion. * Place favicon.ico at the root of the build dir * Make comment style consistent between prod and dev webpack configs * Fix html-loader config in dev mode
* Load favicon through html-loader. Fixes facebook#291. * Add test for *.ico in e2e test suite * Configure html-loader to process <link href="..."> * Address feedback on html-loader inclusion. * Place favicon.ico at the root of the build dir * Make comment style consistent between prod and dev webpack configs * Fix html-loader config in dev mode
I tried deleting the
favicon.ico
file after creating an app with version0.2.0
and got this error:(omitted stack trace for brevity)
The text was updated successfully, but these errors were encountered: