Created by: dustinsoftware
This is accomplished via postcss.config.js, which will be searched for if plugins
is not specified as an option to postcss-loader
Postcss plugins are required to use Tailwind CSS, a popular styling framework which leverages a custom module import syntax.
This overlaps slightly with #8331, but takes a non-breaking change approach.
How I tested this:
- Created a sample repo with a postcss config and used environment variables in the scripts
- Ran
yarn link react-scripts
to link the changes - Confirmed that dropping the flag reverts to the default behavior, which uses the preset list of plugins in CRA's internal config