html - Is there a way to clean up a CSS stylesheet so that only active styling is kept -
I have recently started working on a web-app project, which was created and rebuilt multiple times by different developers has been done. Each time a new version was made, old people's stylesheets were kept, and they were only overridden by the new stylesheets. As of today I have the following sheets:
style.css - 2009 style v2.css - 2011 style v3.css - 2012 mobile.css - 2013 tablet.less - 2014 main.less - 2014 I have been able to create a main.less file for which all things are necessary in the correct order, then I compile the CSS and reduce it so that my Pass only one, compressed file, but also, this is a very big way (over 250kb CSS compressed !!).
I know that there are 50% rules in those stylesheets which are unused, because they are overridden one or more times; others will have too much work to do some manual deletion, app and CSS There is a big way for this.
I am thinking that it is possible to keep only "active" rules in this CSS. I was thinking of using a web browser because it knows which rules are "active", but I do not know how can I remove all possible active rules in a new, cleaner and lighter stylesheet <
hoarse Works in many files for deleting unused CSS from your projects with an excruciating work UnCSS and uses dynamic injection CSS supports PhantomJS
Comments
Post a Comment