How to use Purgecss with Tailwindcss in a VueJS Project

In a Vue project, or an existing project pull in a few dependencies: tailwindcss postcss postcss-cli Make sure your stylesheet is referenced in your . Initialise your tailwind config file using: npx tailwind init --full Then in your , in the “scripts“ section, add: “css:build“: “postcss path/to/your/ -o path/to/your/public/“ Then pull in postcss-purgecss: npm install @fullhuman/postcss-purgecss Now build the rc file for postcss to reference when it runs in the
Back to Top