@@ -86,6 +86,7 @@ def javascript_pack_tag(*names, **options)
8686 # By default, this list is auto-generated to match everything in
8787 # app/javascript/packs/*.js and all the dependent chunks. In production mode, the digested reference is automatically looked up.
8888 # See: https://webpack.js.org/plugins/split-chunks-plugin/
89+ #
8990 # Example:
9091 #
9192 # <%= javascript_packs_with_chunks_tag 'calendar', 'map', 'data-turbolinks-track': 'reload' %> # =>
@@ -94,18 +95,23 @@ def javascript_pack_tag(*names, **options)
9495 # <script src="/packs/calendar-1016838bab065ae1e314.chunk.js" data-turbolinks-track="reload"></script>
9596 # <script src="/packs/map~runtime-16838bab065ae1e314.chunk.js" data-turbolinks-track="reload"></script>
9697 # <script src="/packs/map-16838bab065ae1e314.chunk.js" data-turbolinks-track="reload"></script>
98+ #
9799 # DO:
98- # <%= javascript_packs_with_chunks_tag 'calendar', 'map' %>
100+ #
101+ # <%= javascript_packs_with_chunks_tag 'calendar', 'map' %>
102+ #
99103 # DON'T:
100- # <%= javascript_packs_with_chunks_tag 'calendar' %>
101- # <%= javascript_packs_with_chunks_tag 'map' %>
104+ #
105+ # <%= javascript_packs_with_chunks_tag 'calendar' %>
106+ # <%= javascript_packs_with_chunks_tag 'map' %>
102107 def javascript_packs_with_chunks_tag ( *names , **options )
103108 javascript_include_tag ( *sources_from_manifest_entrypoints ( names , type : :javascript ) , **options )
104109 end
105110
106111 # Creates a link tag, for preloading, that references a given Webpacker asset.
107112 # In production mode, the digested reference is automatically looked up.
108113 # See: https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content
114+ #
109115 # Example:
110116 #
111117 # <%= preload_pack_asset 'fonts/fa-regular-400.woff2' %> # =>
@@ -152,11 +158,15 @@ def stylesheet_pack_tag(*names, **options)
152158 # <link rel="stylesheet" media="screen" href="/packs/3-8c7ce31a.chunk.css" />
153159 # <link rel="stylesheet" media="screen" href="/packs/calendar-8c7ce31a.chunk.css" />
154160 # <link rel="stylesheet" media="screen" href="/packs/map-8c7ce31a.chunk.css" />
161+ #
155162 # DO:
156- # <%= stylesheet_packs_with_chunks_tag 'calendar', 'map' %>
163+ #
164+ # <%= stylesheet_packs_with_chunks_tag 'calendar', 'map' %>
165+ #
157166 # DON'T:
158- # <%= stylesheet_packs_with_chunks_tag 'calendar' %>
159- # <%= stylesheet_packs_with_chunks_tag 'map' %>
167+ #
168+ # <%= stylesheet_packs_with_chunks_tag 'calendar' %>
169+ # <%= stylesheet_packs_with_chunks_tag 'map' %>
160170 def stylesheet_packs_with_chunks_tag ( *names , **options )
161171 if current_webpacker_instance . config . extract_css?
162172 stylesheet_link_tag ( *sources_from_manifest_entrypoints ( names , type : :stylesheet ) , **options )
0 commit comments