Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitelisting in the CSS #46

Closed
scottzirkel opened this issue Sep 13, 2018 · 2 comments
Closed

Whitelisting in the CSS #46

scottzirkel opened this issue Sep 13, 2018 · 2 comments

Comments

@scottzirkel
Copy link

I have a third party vendor that I need styles for, but without a source to scan, it keeps purging those styles. PurgeCSS has an option to whitelist specific style blocks from the CSS, but it doesn't seem to be working with this plugin.

Is that option available in this plugin?

@sebastiandedeyne
Copy link
Member

whitelistPatterns is definitely supported, we're using it too.

https://github.com/spatie/laravel-mix-purgecss#example-custom-configuration

It could be that the API is slightly different than the docs you linked too, since this wrapper doesn't use v1 of Purgecss yet.

@scottzirkel
Copy link
Author

I knew whitelistPatterns was supported, just wasn't sure about being able to ignore in the css with /* purgecss ignore */ tags. You're right, probably a v1 thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants