-
Notifications
You must be signed in to change notification settings - Fork 12k
favicon not being deployed/displayed #2232
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
Comments
I had to put mine in the assets folder and change the path in the index.html |
This also seems related: #2202 |
You have to create an assets folder in your src folder. By convention the CLI will copy it for you to /dist. The webpack version of the CLI replaced the public folder for one named assets |
@jbeckton @peterennis yes that (creation of |
How do we find out if the team still wants to have the favicon.ico file copied during build? If it should still do this, I think the following will fix it... In packages\angular-cli\models\webpack-build-common.ts update the plugins object to include a copy of the favicon.ico file:
If someone wants to do a pull request to fix this, please go ahead. There is too much overhead for me to follow the developers guidelines just for this simple fix. I don't have the time right now. Thanks! Paul |
This works! Thanks |
Dupe of #2137 |
I'd be tempted to rather have favicon.ico in the assets folder and change the url in the index.html accordingly. (And of course also change |
It Works! Thanks! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Microsoft Windows Version 10.0.14393 2016 Microsoft Corporation. All rights reserved.
C:\Users\Peter Ennis>ng version
angular-cli: 1.0.0-beta.14
node: 6.6.0
os: win32 x64
I have tried a number of options in the index.html file to get
the favicon showing but without success.
The localhost site and direct github link show the favicon.
The site is a masked redirect from godaddy to github gh-pages
using the ng github-pages:deploy
Some examples of favicon testing that fail, but have worked in the past
with other deploy methods:
When I look in the dist folder and parent there is no favicon.ico file available to be deployed.
Does the file have to be manually copied? I would expect deploy to take care of this.
The text was updated successfully, but these errors were encountered: