-
Notifications
You must be signed in to change notification settings - Fork 29
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
Specify which SVGO plugins to use #53
Comments
htmlnano doesn't support var htmlnano = require('htmlnano');
var options = {
minifySvg: {
plugins: [
{ convertColors: false }
]
}
};
var svg = '...';
htmlnano
.process(svg, options)
.then(function (result) {
console.log(result.html);
}); |
In #53 I has been asked about disabling SVGO optimizations. So I think it'll be nice to add a related test to check that.
Just fyi (in case you didn't know already), Parcel allows you to use such Since it seems like this is something related to Parcel (at least for now), I'll open an issue there to discuss how this should be done so that file allows users to enable/disable just some of the plugins. Thanks! |
I'm definitely interested and I'll appreciate your help! Though, I don't have spare time right now to implement that myself, but I'll accept your PR. |
Is there any way to enable/disable specific SVGO plugins using the config file? Right now my
.htmlnanorc
looks like this:And I'd like to have something like this:
The text was updated successfully, but these errors were encountered: