Method: Webpacker::Helper#favicon_pack_tag

Defined in:
lib/webpacker/helper.rb

#favicon_pack_tag(name, **options) ⇒ Object

Creates a link tag for a favicon that references the named pack file.

Example:

<%= favicon_pack_tag 'mb-icon.png', rel: 'apple-touch-icon', type: 'image/png' %>
<link href="/packs/mb-icon-k344a6d59eef8632c9d1.png" rel="apple-touch-icon" type="image/png" />


68
69
70
# File 'lib/webpacker/helper.rb', line 68

def favicon_pack_tag(name, **options)
  favicon_link_tag(resolve_path_to_image(name), options)
end