survivejs / webpack-book

From apprentice to master (CC BY-NC-ND)
https://survivejs.com/webpack/
2.42k stars 319 forks source link

Purifying CSS when using React #290

Closed gavinorland closed 4 years ago

gavinorland commented 6 years ago

Re. this section, as mentioned to Juho privately, I found that using PurifyCSS with a React app didn't work as expected - it stripped out too much CSS - perhaps all except that imported by the root component.

This probably won't make a difference to me as I'm going to try Styled Components, but just FYI.

bebraw commented 4 years ago

I've updated the chapter to purgecss (in dev). Not much else to do here. 👍