rails / propshaft

Deliver assets for Rails
MIT License
913 stars 97 forks source link

Maintain sourcemap file extensions #171

Closed tagCincy closed 5 months ago

tagCincy commented 10 months ago

The regular expression for generating digested paths in propshaft is updated to accommodate sourcemap files. This will ensure the digested sourcemaps end -sha.ext.map instead of ext-sha.map. Services like Datadog that allow sourcemap uploads look specifically for files ending with .js.map, so this change allows compatibility. A corresponding test has been added in asset_test.rb, verifying that sourcemap files are correctly digesting their paths.

brenogazzola commented 9 months ago

Looks good, can you resolve the conflicts Github is complaning so we can merge please?