You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that PostCSS is included by default in CRA, which is great! But it's kinda useless right now as CRA ignores PostCSS config, so there is no way to use the actually useful PostCSS stuff like nesting or imports etc without ejecting (and losing all the benefits of CRA).
I mean, it kinda makes no sense to have PostCSS installed by default, but not allowing any plugins, so that users who don't want to eject don't have any other option than installing SASS and using that instead. And then you're left with a basically useless PostCSS dependency when you're using SASS anyways. Like who uses both PostCSS and SASS in one project? Either go full SASS and ditch the PostCSS, or even better yet, drop the SASS and replace it with postcss-nesting || postcss-nested and postcss-import or allow users to define their own plugins via postcss.config.js.
Describe the solution you'd like
Make CRA pickup on user-provided postcss.config.js file to configure PostCSS plugins and whatnot. Or if you don't want to unlock the full config, then at least have some custom config file where you would just specify the plugins you want to use and CRA would sort it out.
Describe alternatives you've considered
Ejecting - loses the point of CRA
Use SASS instead - doesn't make much sense (in 2022 at least) to use SASS with PostCSS
Is your proposal related to a problem?
I see that PostCSS is included by default in CRA, which is great! But it's kinda useless right now as CRA ignores PostCSS config, so there is no way to use the actually useful PostCSS stuff like nesting or imports etc without ejecting (and losing all the benefits of CRA).
I mean, it kinda makes no sense to have PostCSS installed by default, but not allowing any plugins, so that users who don't want to eject don't have any other option than installing SASS and using that instead. And then you're left with a basically useless PostCSS dependency when you're using SASS anyways. Like who uses both PostCSS and SASS in one project? Either go full SASS and ditch the PostCSS, or even better yet, drop the SASS and replace it with
postcss-nesting || postcss-nested
andpostcss-import
or allow users to define their own plugins viapostcss.config.js
.Describe the solution you'd like
Make CRA pickup on user-provided
postcss.config.js
file to configure PostCSS plugins and whatnot. Or if you don't want to unlock the full config, then at least have some custom config file where you would just specify the plugins you want to use and CRA would sort it out.Describe alternatives you've considered
Ejecting - loses the point of CRA
Use SASS instead - doesn't make much sense (in 2022 at least) to use SASS with PostCSS
Additional context
#9604
The text was updated successfully, but these errors were encountered: