Closed fiveNinePlusR closed 3 years ago
Hi,
Thanks so much for the fix. I can confirm it's working here.
Can you please force push a new commit message of this and then I'll merge it:
Fix JavaScript not loading with Webpacker 6
The chunking by default option in Webpacker 6 breaks if
javascript_pack_tag is used.
Prior to this patch the JS would load but it wouldn't execute.
On second thought, a new fix came about where everything makes sense based on following a few PRs on Webpacker. I replied in the linked issue with more details https://github.com/nickjj/docker-rails-example/issues/17#issuecomment-872128627.
I appreciate you looking into this! It lead to a working solution in any case. Now we can continue using the regular javascript_pack_tag
.
The chunking by default option in webpacker now breaks if the
javascript_pack_tag
is used.closes #17