DEV Community

Discussion on: How to Add a favicon to the site in Rails 6 using Webpacker

Collapse
megatux profile image
Cristian Molina • Edited on

I want to add a favicon (ico or png). Don't work here. Error:

Webpacker can't find favicon.png in /home/some_user/code/some_project/public/packs/manifest.json. Possible causes:

  1. You want to set webpacker.yml value of compile to true for your environment unless you are using the webpack -w or the webpack-dev-server.
  2. webpack has not yet re-run to reflect updates.
  3. You have misconfigured Webpacker's config/webpacker.yml file.
  4. Your webpack configuration is not creating a manifest.
Collapse
megatux profile image
Cristian Molina

ok, found the error, was using app/assets/images/ and not app/javascript/images/, doh :)