|
|
|
|
|
by gkoberger
3394 days ago
|
|
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 programmer could shorten it when writing, but is the extra half a milisecond worth having to work with x, y and z as classes rather than more explicit classes? |
|
If that's the case, using CSS Modules, you can do in CSS:
requiring it will yield a map like this: which you can use this way: