2 ms·
An additional bad part of A, if you look at many bootstrap sites, themes and components that aren't built from source projects, is you also wind up with a LOT o
by tracker1 9y ago
An additional bad part of A, if you look at many bootstrap sites, themes and components that aren't built from source projects, is you also wind up with a LOT of bloat for style definitions that aren't even used. Winding up with kludge on top of kludge, in a large project, where eventually you have to deeply namespace everything to overcome some abstract rule for a part of the app/site you can't even find if it's used anymore.
- dfcowell 9y agoThere's tooling for that: https://github.com/simlrh/dead-css-loader https://github.com/simlrh/dead-css-loader CSS modules are about 95% of the way to making this a solved problem. Obviously this relies on imported components implementing CSS modules, but for a greenfield project this kind of thing works remarkably well.