Module: Webpack::Rails::Helpers
- Includes:
- Helpers
- Defined in:
- lib/webpack/rails/helpers.rb
Constant Summary
Constants included from Helpers
Instance Method Summary collapse
- #image_bundle_tag(entry, **options) ⇒ Object
- #javascript_bundle_tag(*entries, **options) ⇒ Object
- #stylesheet_bundle_tag(*entries, **options) ⇒ Object
Methods included from Helpers
Instance Method Details
#image_bundle_tag(entry, **options) ⇒ Object
18 19 20 |
# File 'lib/webpack/rails/helpers.rb', line 18 def image_bundle_tag(entry, **) image_tag webpack_bundle_path(entry), ** end |
#javascript_bundle_tag(*entries, **options) ⇒ Object
10 11 12 |
# File 'lib/webpack/rails/helpers.rb', line 10 def javascript_bundle_tag(*entries, **) javascript_include_tag(*entries.map { |entry| webpack_bundle_path "#{entry}.js" }, **) end |
#stylesheet_bundle_tag(*entries, **options) ⇒ Object
14 15 16 |
# File 'lib/webpack/rails/helpers.rb', line 14 def stylesheet_bundle_tag(*entries, **) stylesheet_link_tag(*entries.map { |entry| webpack_bundle_path "#{entry}.css" }, **) end |