isomorphic-style-loader
isomorphic-style-loader copied to clipboard
Support for critical css without css modules
Not every project uses css modules and there are signs that the react team are against using css modules. Does this library support critical css when components import css like
import component/mystyle.css
Theoretically speaking, it should be possible to find out which components are rendered above the fold, and then resolve css imports from those components into critical path css.
@pastelsky You strongly misunderstood goal of create-react-app. Facebook react team are NOT against CSS-modules, they are simply trying to create generic and workflow agnostic (I'm talking about webpack) application in create-react-app project. So since they are going to remove webpack at all in the future they can not support CSS-modules loader.
Back to your question: if you are happy with weback you should not to worry about CSS-modules or isomorphic-style-loader and your improve suggestion will not change create-react-app team point of view - neither ours.
css modules is now supported in create-react-app
- that article that was linked is outdated now