Module: Esbuilder::Helper
- Defined in:
- lib/esbuilder/helper.rb
Instance Method Summary collapse
Instance Method Details
#entry_point_tag(*entry_points, **options) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/esbuilder/helper.rb', line 5 def entry_point_tag(*entry_points, **) files = build(*entry_points) files.map do |file| if file.end_with?(".js") javascript_include_tag file, ** elsif file.end_with?(".css") stylesheet_link_tag file, ** else # Ignore non-js/css files "" end end.join("\n").html_safe end |