Skip to main content
Ask A Question
Notifications
You’re not receiving notifications from this thread.
Subscribe

rails 6 favicon.ico Webpacker can't find favicon.ico

General • Asked by Fugee Ohu

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);


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,242+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.