svgo icon indicating copy to clipboard operation
svgo copied to clipboard

[new plugin] reimplement inlineDefs

Open TrySound opened this issue 3 years ago • 2 comments

The code is taken from https://github.com/svg/svgo/pull/976, refactored with new api, covered types and simplified.

Plugin has no dependencies so can be used without changing.

const inlineDefs = require('./inlineDefs.js');

module.exports = {
  plugins: [
    'preset-default',
    inlineDefs
  ]
};

TrySound avatar Feb 21 '22 17:02 TrySound

Will this ever happen?

itayganor avatar Aug 07 '22 20:08 itayganor

@TrySound, @itayganor: Yes, dereference <use> plugin: https://github.com/svg/svgo/pull/1279

strarsis avatar Mar 24 '23 13:03 strarsis