Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Update extension pattern for asset file hashes #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

morrisallison
Copy link

The pattern to match extensions on input file names allows for every character. This results in files named like bundle.a2b2c3.js to have their file hashes removed when their extensions are changed. To preserve file hashes, this change updates the pattern to allow for every character except a period (.) in file extensions.

The pattern to match extensions on input file names allows for every character. This results in files named like `bundle.a2b2c3.js` to have their file hashes removed when their extensions are changed. To preserve file hashes, this change updates the pattern to allow for every character except a period (`.`) in file extensions.
@morrisallison
Copy link
Author

I wasn't sure if this was the expected behavior or not, but the Babel plugin portion of the tool doesn't remove the hashes for the files.

Also, thanks for tool, it definitely saved me some time 👍🏽

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant