Why Webpacker Wouldn't Compile Assets in a Specific Environment
A while back, I started working in a Rails application in which I needed to introduce a JavaScript file that’d be compiled with Webpacker. To do so, I created the file in my packs directory and loaded it up via content_for: <% content_for(: body_assets) do %> <%= javascript_pack_tag("some-file") %><% end %>Locally,
Read It