1
0
mirror of https://github.com/svg/svgo.git synced 2025-04-19 10:22:15 +03:00

11 Commits

Author SHA1 Message Date
Rogier Slag
04abd6fc59
Correct typo in comment in removeDimensions plugin (#1633) 2021-12-28 16:15:55 +03:00
Bogdan Chadkin
07f8d606e0
Implement preset-default plugin (#1513)
I saw complaints about `extendDefaultPlugins` api

- it cannot be used when svgo is installed globally
- it requires svgo to be installed when using svgo-loader or svgo-jsx
- it prevents using serializable config formats like json

In this diff I introduced the new plugin which is a bundle of all
default plugins.

```js
module.exports = {
  plugins: [
    'preset_default',
    // or
    {
      name: 'preset_default',
      floatPrecision: 4,
      overrides: {
        convertPathData: {
          applyTransforms: false
        }
      }
    }
  ]
}
```
2021-08-13 19:07:08 +03:00
Bogdan Chadkin
07928fc77e
Replace removeAttr with delete operator (#1432)
delete operator is more explicit and not much harder to use.
2021-03-17 21:40:06 +03:00
Bogdan Chadkin
d1d6e5efe8
Remove prefix/local support in elements and attributes (#1413)
These parts of element and attribute name are easy to extract.
Now we can easily replace attrs with xast attributes object.
2021-03-10 13:26:15 +03:00
Bogdan Chadkin
00ec0f71fe Format all plugins with prettier 2021-03-09 19:58:00 +03:00
Adi Pascu
31e6a8cb65 Make removeDimensions add viewBox if it's missing 2019-07-13 22:27:47 +03:00
Lev Solntsev
f03d832838 Update readme to sync with actual state 2017-11-03 12:54:36 +03:00
GreLI
62a0547bfa Merge branch 'removeDimensionsPlugin' of git://github.com/bennyschudel/svgo into addClassesToSVGElement 2015-06-21 19:28:37 +03:00
Benny Schudel
0a3ee55406 Added removeDimensions to its own branch 2014-03-27 14:59:29 +01:00
Benny Schudel
de073e9c9d Removed removeDimensions plugin > to be added in its own branch 2014-03-27 14:49:01 +01:00
Benny Schudel
72fdf9026a Added removeDimensions plugin 2014-03-26 16:48:50 +01:00