-
Notifications
You must be signed in to change notification settings - Fork 68
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
Enable hooks to drop / retain individual css declarations #50
Labels
enhancement
New feature or request
Comments
i don't want to bake this into the core, but would be okay with adding a callback that can hook into this externally via a declaration processor callback here: Lines 204 to 207 in fd9b383
{
declProc(selsArr, declBlob) {
// parse and filter declarations, and return new decls blob.
return myFilteredDeclsBlob;
}
} you'll need to pull feel free to make a PR if you get this working. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to optimize css file across multiple html files... those css files could be different so it would be nice if you could drop or retain individual declarations. Potentially via
didRetainDeclaration
anddropDeclaration
.it would allow doing something like this...
if you would be interested in supporting this I could prepare a PR for it 🤗
let me know what you think 🤗
Some more details
I currently have it working in a fork and it usage looks like this
the code change itself is actually rather small and mostly in
css.js
The text was updated successfully, but these errors were encountered: