solid-realworld
solid-realworld copied to clipboard
Tree shaking css
Trying to fix #3
This does not work yet. Maybe we need to use postcss-purgecss plugin instead https://v2.parceljs.org/languages/postcss/ https://github.com/FullHuman/purgecss/tree/master/packages/postcss-purgecss
Yeah I'm not clear how these CSS cleaners work. The thing is the Realworld Demo uses pre-existing CSS files that aren't being included in the JS so I'm not sure a bundler has enough knowledge.
I have not been able to make this work. But if we do, that would be a huge benefit!
We might make a wrapper plugin specifically for Solid with the settings that we are sure would work.