javascript - Find CSS classes that are used in JS -
i embarking on daunting task of cleaning existing site. i'm stripping out years worth of css added multiple developers in favour of adding new framework , own set of clear css styles.
what want reserve id js , class css. know of js need @ classes that's ok. there many times able alter class name id without issue.
the existing site has 11755 instances of class=" across 457 files can't strip them out because know js dependant on of classes.
can provide help how locate dependant classes in js? have no thought how other manually , seems crazy.
search of files next regex (you have figure out how on scheme you're using)
class=("[^"]*")
with class names within quotation marks.
you intersect list strings (in quote marks) used in javascript. intersection classnames javascript dependent on.
javascript html css code-cleanup
No comments:
Post a Comment