Purgecss with Tailwind - Laravel Mix & Vue CLI 3

We take a look at using Purgecss to optimize our Tailwind CSS output file size. We’ll use it in both Laravel with Laravel Mix and in Vue with a Vue CLI 3 project. Tailwind generates a large file size because of all the utility classes it provides. You’re probably not using a ton of the css rules it generates. Purgecss analyzes your code and removes any unused CSS for you automatically. GitHub Repo for Laravel Example: GitHub Repo for Vue Example: https://git
Back to Top