Replace static CSS/script imports with Drupal placeholder tokens #717
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do? 🛠️
uswds-init
is for the init script, so we can specify that it goes in thehead
uswds-customized
for our builtstyles.css
and the USWDS scriptslocation-search
for powering the location searchlocalize-timestamps
for powering localization of timestampshtml.html.twig
template to remove the static<link>
and<script>
tagslocation-search
andlocalize-timestamp
libraries in the twig templates that need them, so they only get loaded on relevant pagesGoing forward, if there are scripts that only need to appear in certain places, this may be a template for how we can do that.
closes #234
What does the reviewer need to know? 🤔
make cc
may be enough, but the theme cache has to be cleared out in order for Drupal to re-read the libraries stuff.Screenshots (if appropriate): 📸
n/a because nothing should have changed from the user's perspective