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

Whitelist specific file #35

Closed
laurencei opened this issue Dec 21, 2017 · 2 comments
Closed

Whitelist specific file #35

laurencei opened this issue Dec 21, 2017 · 2 comments

Comments

@laurencei
Copy link

I've read the docs on whitelisting and I cant see the answer;

Is it possible to whitelist a specific file? I would assume Normalize.css (https://necolas.github.io/normalize.css/) is a fairly common inclusion. Should we be purging that file, or including it "whole"?

Even though we might not reference a class directly, I'm trying to think if it would affect anything...?

@Ffloriel
Copy link
Member

Normalize.css makes browsers render all elements more consistently and in line with modern standards.

If you are using an element on your page, it might be displayed differently depending on the browsers. But if you are not using an element, it should not be a problem to remove the reset style.

If you are using an element in your content, purgecss should be able to detect it and will keep the normalize css associated with the element. I don't think it would affect anything.

@laurencei
Copy link
Author

Yeah - after sleeping on this I've come to the same conclusion. I'll see how it goes. Thanks!

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