Working on a web application using CRA 3.4.1
along with a component library called PrimeReact 4.1.2
.
My custom CSS is processed through the PostCSS setup in CRA, which adds prefixed versions for properties like display: flex
to ensure IE10
support in the built files (main.<hash>.chunk.css
).
The issue arises with PrimeReact components, as their bundled CSS is not processed during the build. Consequently, the final 2.<hash>.chunk.css
lacks the necessary vendor prefixed rules.
How can I enable processing of this third party CSS without ejecting from the project? Is there a way to configure it? The official docs don't seem to provide information on this. Perhaps excluding third party CSS and manually importing
'../node_modules/primereact/resources/primereact.css'
could be a solution?