svgo icon indicating copy to clipboard operation
svgo copied to clipboard

feat: add support for `--disable` and `--enable` flags back

Open wojtekmaj opened this issue 2 months ago • 0 comments

Closes #1356 Closes #1622

In https://github.com/svg/svgo/issues/1622#issuecomment-971440346 we read:

I consider adding it back at some point but it should be able to work with presets somehow. This is still need to be figured out.

I believe that by using globalOverrides, we can make it very easily, but I must admit, this was the first time I've worked with this code, so I might have missed something.

I did test the code though and it disabled the plugins I wanted when using CLI, so at the very least we're getting somewhere.

I've also increased JSDoc coverage here, mainly for my own sanity when working with these arrays of plugins. Hope you don't mind that scope creep :)

wojtekmaj avatar Apr 08 '24 13:04 wojtekmaj