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

♻️ Use asset URIs with versioning query string removed #1

Merged
merged 1 commit into from
Feb 3, 2021
Merged

♻️ Use asset URIs with versioning query string removed #1

merged 1 commit into from
Feb 3, 2021

Conversation

joshuafredrickson
Copy link
Contributor

Using Sage 10, this didn't work for me using file_get_contents()... Nothing was echoed. Switching to asset(...)->contents() fixed that.

This also uses the item's URI as defined in the manifest instead of recreating it with get_stylesheet_directory_uri() . '/dist'.

@MWDelaney MWDelaney merged commit 6118a7c into MWDelaney:master Feb 3, 2021
@MWDelaney
Copy link
Owner

This is fantastic. Thank you for your contribution!

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.

None yet

2 participants