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

Add helper method for finding the first readable manifest #28

Merged
merged 5 commits into from
Oct 28, 2020

Conversation

goldenapples
Copy link
Contributor

@goldenapples goldenapples commented Oct 26, 2020

Adds a helper function, Asset_Loader\Manifest\get_active_manifest(), which can be used to retrieve the correct manifest file to use depending on whether the dev server is running or not.

This makes supporting functionality like serving production assets with hashed filenames for cache busting (see #2) a bit cleaner, by defining an idiomatic way of sourcing production assets from a manifest file.

goldenapples and others added 5 commits October 26, 2020 10:41
Adds a helper function, `Asset_Loader\Manifest\get_active_manifest()`,
which can be used to retrieve the correct manifest file to use depending
on whether the dev server is running or not.
@kadamwhite kadamwhite merged commit 4971929 into main Oct 28, 2020
@kadamwhite kadamwhite deleted the support-multiple-manifests branch October 28, 2020 15:08
@kadamwhite
Copy link
Collaborator

@goldenapples Thanks for this! I added tests (and got Travis running again, thanks Composer 2...! 😆 ) but we'll get this out soonish.

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.

2 participants