Fixes that asset hosts would be ignored when defined as Proc or when set on ActionController::Base.asset_host directly
Fixes that webpacker:compile and bin/webpack would generate dev server URLs in development mode. This should only happen when using bin/webpack-dev-server.
Changespaths.output so that it's:
Relative to public/
Distinct from paths.entry
Not broken if you change it. Previously webpacker would compile into paths.output/paths.entry, but wouldn't include paths.output in generated URLs. So, if you changed paths.output, you'd end up with busted URLs:
>> Webpacker::Manifest.lookup("application.js")=>"https://cdn.example.com/packs/application.js"# That ^ URL would not work because the compiled file isn't there
>> Rails.root.join("public/packs/application.js").exist?=>false# Because the compiled file is here
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.