Skip to content

Commit

Permalink
Optimize bundle.css with css-nano. (#783)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tmeyer2115 committed May 20, 2021
1 parent 8866b78 commit c7ce93f
Show file tree
Hide file tree
Showing 3 changed files with 1,195 additions and 59 deletions.
Loading

0 comments on commit c7ce93f

Please sign in to comment.