DEV Community

Clarice Bouwer
Clarice Bouwer

Posted on

Dynamically execute Tailwind CSS on multiple files with multiple outputs

Finds all CSS files in a given director, iterates through them and executes tailwindcss CLI using the Tailwind config and outputs each file to a dist/ dir.

find . -name \"*.css\" -exec npx tailwindcss -c tailwind.config.js -i {} -o dist/{} \\;
Enter fullscreen mode Exit fullscreen mode

Top comments (0)