4 ms·
Alternatively, you could dump the DOM of each rendered test case and use that to construct a single document that has all the classes and ids that are in use in
by eriknstr 10y ago
Alternatively, you could dump the DOM of each rendered test case and use that to construct a single document that has all the classes and ids that are in use in it and run UnCSS on that. Maybe. Not saying it will be easy (in particular rules which are about certain hierarchies might get hairy) but I think it's worth a shot.
- ry_ry 10y agoHuh, pulling it out the unit tests is a pretty good idea actually - if the test coverage is good enough it might be worth a bit of investigation. Especially since it'd be an optional build step you'd only want to run infrequently.