Khan / engblog

KA Engineering blog.
http://engineering.khanacademy.org
Other
29 stars 20 forks source link

Remove unused CSS on pages. #1

Open itsjohncs opened 9 years ago

itsjohncs commented 9 years ago

I was using UnCSS for this (through gulp-uncss), but I kept getting errors while testing. I think it's caused by using it multiple times (like when you make changes over and over again while serving the site).

itsjohncs commented 9 years ago

It just struck me that I should be able to figure out if the unused CSS is in a file that shouldn't have unused CSS in it, and I could potentially have it spit out warnings... Not sure if that would be valuable, but it does sounds pretty sweet.