Replying to @⁨kopper@not-brain.d.on-t.work⁩

@kopper does the min chunk size not work for this?

also, slightly related, but I wish there was smth that could do css merging
there's like two kinds of merging I can think of which would be useful

  1. duplicate definitions, e.g. you have .foo { display: block } and .bar { display: block }, this can be merged to .foo, .bar { display: block }
  2. merging classes used in the same place. this one is a bit more complicated than the first one, and imo most relevant when using tailwindcss or unocss. if you have some place where you use a bunch of classes that are not used anywhere else, then just merge all those classes into a single class with all the styles and a single mangled name.

Replying to @⁨solonovamax@tech.lgbt⁩

@kopper ideally you'd also want some heuristics and route-awareness for the 2nd one, e.g. if you have route-scoped css and you have a class that is used in two places but nowhere else, it might be beneficial to merge the classes anyways, but then if it's used in many different routes, it would be beneficial to not have that specific class merged (but you can still merge the other classes) and put it in the main bundle instead

en