solid-realworld icon indicating copy to clipboard operation
solid-realworld copied to clipboard

Tree shaking css

Open aminya opened this issue 4 years ago • 3 comments

Trying to fix #3

aminya avatar Sep 22 '20 09:09 aminya

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

aminya avatar Sep 22 '20 10:09 aminya

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.

ryansolid avatar Sep 22 '20 15:09 ryansolid

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.

aminya avatar Sep 23 '20 01:09 aminya