1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

[new plugin] reimplement inlineDefs

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
  ]
};
```
This commit is contained in:
Bogdan Chadkin
2022-02-21 01:46:04 +03:00
parent 238d3bf600
commit bb3f1a99ef
16 changed files with 403 additions and 0 deletions

View File

@ -54,3 +54,4 @@ exports.removeXMLProcInst = require('./removeXMLProcInst.js');
exports.reusePaths = require('./reusePaths.js');
exports.sortAttrs = require('./sortAttrs.js');
exports.sortDefsChildren = require('./sortDefsChildren.js');
exports.inlineDefs = require('./inlineDefs.js');