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

Optimize bundle.css with css-nano. (#783) #788

Merged
merged 1 commit into from
May 20, 2021
Merged

Conversation

tmeyer2115
Copy link
Collaborator

This PR adds the postcss-loader and css-nano to the Theme's Webpack configuration. This addition allows css-nano to perform a number of optimizations and minimizations on the bundle.css that we output. I saw the size of this asset decrease by about 10 KB on a local test site.

J=SLAP-1299
TEST=auto, manual

Ensured the Percy tests passed after the change. Smoke tested a local test site and verified that the styling looked as expected.

This PR adds the `postcss-loader` and `css-nano` to the Theme's Webpack configuration. This addition allows `css-nano` to perform a number of optimizations and minimizations on the `bundle.css` that we output. I saw the size of this asset decrease by about 10 KB on a local test site.

J=SLAP-1299
TEST=auto, manual

Ensured the Percy tests passed after the change. Smoke tested a local test site and verified that the styling looked as expected.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0007%) to 5.416% when pulling c7ce93f on feature/css-nano into a0f8092 on develop.

@tmeyer2115 tmeyer2115 merged commit 08d53d6 into develop May 20, 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.

2 participants