rails 6 favicon.ico Webpacker can't find favicon.ico
app/javascripts/packs/application.js:
import "favicons"
app/javascripts/packs/favicons.js:
const faviconsContext = require.context(
‘!!file-loader?name=../images/favicons/[name].[ext]!.’,
true,
/.(svg|png|ico|xml|json)$/
);faviconsContext.keys().forEach(faviconsContext);
Check this article https://dev.to/kattak2k/adding-a-favicon-to-your-site-using-webpacker-in-rails-6-2m2h looks like it contained the answer to your question.
By default, the helper in Rails looks for the favicons in the assets/images folder. Webpack does not ;-)