Module: Webpack::ViewHelper
- Defined in:
- lib/webpack/view_helper.rb
Instance Method Summary collapse
Instance Method Details
#webpack_javascript_tag(chunk) ⇒ Object
5 6 7 8 9 |
# File 'lib/webpack/view_helper.rb', line 5 def webpack_javascript_tag(chunk) path = webpack.javascripts[chunk.to_s] fail ArgumentError, "cant find chunk #{chunk}" unless path javascript_include_tag path end |
#webpack_stylesheet_tag(chunk = nil) ⇒ Object
11 12 13 14 15 |
# File 'lib/webpack/view_helper.rb', line 11 def webpack_stylesheet_tag(chunk = nil) path = webpack.stylesheets[chunk.to_s] fail ArgumentError, "cant find chunk #{chunk}" unless path stylesheet_link_tag path end |