Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

Move CSS compressing to cssnano #342

Open
jeremenichelli opened this issue Jul 31, 2017 · 1 comment
Open

Move CSS compressing to cssnano #342

jeremenichelli opened this issue Jul 31, 2017 · 1 comment
Labels

Comments

@jeremenichelli
Copy link

jeremenichelli commented Jul 31, 2017

We are currently compressing styles using our CSS pre-processor options which are not that smart.

My recommendation is to move to PostCSS plugin cssnano plugin which does more stuff like combining similar rules, reducing selectors and gradients and can even be extended to less safe optimizations.

@jeremenichelli
Copy link
Author

Just run an experiment with CARS stylesheet and it went from 46Kb to 37Kb, 20% reduced.

@njam3 njam3 added the approved label Nov 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants