# How to purgecss a secondary css apart from the main tailwind one (Sage 10)

**URL:** https://discourse.roots.io/t/how-to-purgecss-a-secondary-css-apart-from-the-main-tailwind-one-sage-10/21170
**Category:** sage
**Tags:** webpack
**Created:** 2021-07-21T12:48:34Z
**Posts:** 2

## Post 1 by @SergiArias — 2021-07-21T12:48:34Z

Hello,

I splitted a css file for specific pages, and I want to purge it the same way as tailwind does. But I don’t know how to start as Tailwind has a very complicated process of doing so with its layers.

Has someone experience with this?

This is the line of code I think has to be modified in webpack.mix.js:

```
mix
  .sass('resources/styles/app.scss', 'styles')
  .sass('resources/styles/plyr.scss', 'styles') // <--- this is the file I want to purge
  .sass('resources/styles/editor.scss', 'styles')
  .options({
    processCssUrls: false,
    postCss: [require('tailwindcss')],
  });
```

---

## Post 2 by @theMosaad — 2021-08-01T04:42:44Z

You’d need to use the external `laravel-mix-purgecss` package that Sage 10 used to use

> <https://github.com/roots/sage/blob/33005e59b45ebf6139c07ec6b5751417a1d24dda/webpack.mix.js>
