How to export only used css from the site?

No dusty spider. No firebug.

I created a project, and I want to export only the CSS that was used in the project or on the page. I tried spider vacuum cleaner and firebug, but these add-ons capture all the CSS of the project! I need to take only the CSS that was used and export it to another CSS file. Is there any program for this reason?

+4
source share
1 answer

Its complicated because you cannot know all the javascript renderings on the page that will affect css. I wrote my own plugin that could run, which would retrieve the visible css on the page and resort to css in cascading order. This is useful in that I can run it after any javascript action, but it still requires examining existing javascript. You can use it. http://stcreative.co.uk/tutorials/css_sorter/

+1
source

Source: https://habr.com/ru/post/1524041/


All Articles