Getting purgecss to read from stdin
The purgecss CLI does not (currently) read css from stdin. Here is a short node script to make that happen.
The command line looks like:
purgecss_stdin <output file>
If no output file is given, it writes to stdout.
It will automatically read a purgecss.config.js
file if it is available.
A usage example:
npx tailwind build src/css/styles.css | purgecss_stdin build/dist/styles.css