spatie / laravel-mix-purgecss

Zero-config Purgecss for Laravel Mix
https://spatie.be/en/opensource
MIT License
874 stars 38 forks source link

laravel mix purgecss options exclude folder #121

Closed danstoian07 closed 3 years ago

danstoian07 commented 3 years ago

I want to purge the css from the "frontend" folder, but exclude the "backend" folder. Is there any option to do this?

I tried adding: content: [path.join(__dirname, 'resources/views/frontend/*/.php')],

It doesn't seem to do anything. All the folders are purged.

recoverjp commented 3 years ago

@danstoian07 Did you solve it? I also need this.

mayanksdudakiya commented 3 years ago

I think, there is already a option available: https://purgecss.com/safelisting.html#in-the-css-directly

spatie-bot commented 3 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.