Ruby on Rails Sunday, December 8, 2019

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


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6ff8f661-c37b-4004-bbab-c50ca9b8dcf3%40googlegroups.com.

No comments:

Post a Comment