Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GITC-233: Cleans up static_url removal from bundled assets and ensures that ts checks are functional #9311

Merged
merged 1 commit into from
Jul 23, 2021

Conversation

gdixon
Copy link
Contributor

@gdixon gdixon commented Jul 21, 2021

Description

Now that the block is being rendered as a template (by the bundle command) prior to being passed through the bundle templatetag, we must ensure that the static_url and appended file hash is properly removed from the requested filenames.

To be sure that we're removing the correct 12 chars (the file hash), this PR rewrites the regex to include the static_url in the match.

This PR also ensure that timestamps are being properly read from files loaded with a base_dir attr to avoid unnecessarily regenerating unchanged assets.

Refers/Fixes

Fixes: GITC-233

Testing

Tested locally under production like setting

@gdixon gdixon merged commit 6031d01 into master Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants