D
D
Daniel Newman2013-06-07 12:23:20
css
Daniel Newman, 2013-06-07 12:23:20

How to clean up CSS/templates by parsing a website?

There is a large website with 280 layouts and 50,000 pages.
In these 280 layouts, there are 3,000 type constructs class="* * *",
800 out of 3,000 classes are unique.
There is a general site style and unique template styles for 150-250kb, weighing 1,500 selectors.
What I want is to build a page / style tree (style map), remove unused styles,
unify the practice of using selectors. The most obvious thing is to redo everything, but I would like to
hear some other practices in such cases, from my own or someone else's experience.
I need your ideas, tools and practices (glasses and clothes)!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kotia, 2013-06-08
@kotia

For a style map, it would be very clear to rewrite styles in LESS, and then unused ones will be clearly visible

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question