Extract styles_min/ CSS from styles/ folder #16154
Merged
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.
Followup to #15790, refactoring the 'min-styles' work to be more reliable/maintainable moving forward.
Remove all styles from
styles/
that were already extracted/added tostyles_min/
. I did this by manually runningcssnano
(apostcss
plugin) to perform the de-duping. (Note it also performed a small bit of additional backwards-compatible style-minification as well.) This will eliminate style-duplication in our version control and the need to maintain two parallel style-bundles in sync moving forward.Update the logic in the Pegasus route combine styles from both
styles/
andstyles_min/
into/style.css
. Now that each style exists in only one or the other folder,style.css
should still contain the full stylesheet set as before.Add
README.md
docs tostyles/
andstyles_min/
folders explaining the usage of these two folders.