News for hackers. Stuff that matters.
Re:CSS Reminification: A crazy idea that worked by catshirt on Wednesday March 08, 2017 @10:23PM (#13826664)
> This isn't something a minifier could do without also modifying HTML and JS, and since a lot of JS automatically generates CSS names (something like $(`.list-${i}`)), this would be nearly impossible.

the other option is what CSS modules does. your scripts essentially "require" classnames from your stylesheets so as classnames in your stylesheet are minified so are their js references.

There are no comments on this comment yet.