1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Commit Graph

193 Commits

Author SHA1 Message Date
Simon Arnell
50fc3c9de5 Updated recursive usage example (#2070)
Fixes #2069
2024-09-04 20:27:49 +01:00
Seth Falco
abb23bf123 docs: add usage section (#2038) 2024-06-16 00:10:42 +01:00
Seth Falco
c86536ed70 chore: disable removeTitle from default plugins (#2014) 2024-05-24 21:14:48 +01:00
Anthony Ryan
573a5c7e0f chore: Update the README docs to suggest svgo.config.mjs (#1958) 2024-02-11 22:33:06 +00:00
Jon Dufresne
2442f74239 chore: convert project to us ECMAScript modules (preserving CJS compatibility) (#1905) 2024-01-03 16:17:37 +00:00
Jon Dufresne
aa470c7952 chore: apply prettier to all supported file types (#1870) 2023-12-15 12:30:44 +00:00
Jon Dufresne
d6ff70baf9 chore: fix several typos (#1868) 2023-12-03 18:02:22 +00:00
Seth Falco
9809b67852 fix(inlineStyles): dont remove id if traversed in another selector (#1836) 2023-11-14 19:01:39 +00:00
Seth Falco
0e5f0f104d chore: revamp readme (#1835) 2023-11-14 16:08:19 +00:00
Seth Falco
a880505859 fix(removeScriptElement): remove link anchors with scripts (#1807) 2023-10-29 14:46:55 +00:00
Tanya Bouman
d4f0de0f5c README: image-webpack-loader -> image-minimizer-webpack-plugin (#1771) 2023-10-24 10:49:16 +01:00
Lehoczky Zoltán
999b2a17e0 chore: update postcss-svgo link (#1770) 2023-10-23 10:49:54 +01:00
Seth Falco
6eac770ba5 feat: convert one stop gradients plugin (#1790)
Detects if a redundant linearGradient or radialGradient is used with
only a single stop, which effectively means a solid color.

If this is found, just remove the gradient and replace references to it
with the color of the first and only stop defined.
2023-10-22 13:53:39 +01:00
ADTC
73f7002ab6 Refactor README to be easier to read through (#1731)
Preview: https://github.com/ADTC/svgo/blob/patch-1/README.md

* Split up code blocks by moving text outside them. (This also ensures
that the Copy function makes sense. _See screenshot:_)
* <img width="380" alt="image"
src="https://user-images.githubusercontent.com/6047296/211246090-64749e5f-3f1e-413b-be39-a99fa2f1b425.png">
* Remove the redundant list of default plugins and refer to the table
instead.
* Sort the table of plugins alphabetically. (It's easier to scan for a
plugin.)
  * _I suggest maintaining the sort when adding new items._
* Replace the enabled/disabled code in Default column with just Yes or
blank.
* Tabulate the "Other ways to use" section and remove redundant "as
a/an".
* Correct the word Donators to Donors.
* Add a new section called _Troubleshooting_.
2023-02-16 01:31:28 +03:00
Bogdan Chadkin
cb1569b221 Update readme 2022-10-23 16:53:49 +03:00
Bogdan Chadkin
6295c60fbf Rename cleanupIDs to cleanupIds for consistency with prefixIds 2022-10-23 11:54:48 +03:00
Andreas Deininger
d2785ae707 README.md: fix broken image link (#1653) 2022-02-17 16:33:13 +03:00
Bogdan Chadkin
dfc5b982c9 Rename master branch to main 2021-12-25 15:09:34 +03:00
Bogdan Chadkin
8ae65b7282 Improve configuration documentation
See https://github.com/svg/svgo/pull/1619

Thanks to @hugolpz
2021-12-25 14:45:15 +03:00
Lopez Hugo
656bb09ccd Shorter commands section (#1620)
In code short comments allows more concise tutorials.
2021-12-07 10:36:07 +03:00
Bogdan Chadkin
5165ccb9d1 Make docs more descriptive 2021-11-02 10:29:48 +03:00
Oscar Busk
ecf855db50 Clarify how to enable/configure builtin plugins (#1531)
I just spent quite a while trying to upgrade to svgo 2.3 because I was thinking that all the configuration I was passing to `extendDefaultPlugins()` previously should now be in `preset-default` overrides. 

Just adding some examples of enabling other builtin plugins could clarify it? 

Maybe I was just being stupid, but a thought :)

Co-authored-by: Bogdan Chadkin <trysound@yandex.ru>
2021-08-23 23:16:36 +03:00
Morgan Ney
1368f8dc93 Remove mention of deprecated extendDefaultPlugins. (#1529) 2021-08-15 22:55:29 +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
862c43ec64 Drop examples folder 2021-08-12 15:51:13 +03:00
Sonny Piers
19014a1113 add Oh My SVG to frontends (#1507)
Co-authored-by: Bogdan Chadkin <trysound@yandex.ru>
2021-08-11 01:18:53 +03:00
Ross Moody
9ae23e4cd5 Add SVG Gobbler to "Ways to use SVGO" (#1503)
Co-authored-by: Bogdan Chadkin <trysound@yandex.ru>
2021-08-10 19:56:45 +03:00
Frank Sandqvist
0e71422c8d Add "another way to use SVGO" (#1501)
I've added a link to a free API to use SVGO. May be useful for somebody!

For transparency sake; I'm one of the creators of the API.
2021-08-10 19:53:30 +03:00
Bogdan Chadkin
cef184cdaf Fix typo in README built-in plugins table 2021-06-26 10:49:52 +03:00
Fabien Caylus
68798ebb6c Mark convertStyleToAttrs as disabled in README (#1472) 2021-04-18 21:38:45 +03:00
Bogdan Chadkin
e3f37ec4e6 Add mergeStyles to readme 2021-03-28 11:59:27 +03:00
Artem Badrtdinov
3cdb14c427 Fix typo in README.md (#1396) 2021-03-02 16:12:50 +03:00
Bogdan Chadkin
cf807fbe34 New logo (#1389)
Ref https://github.com/svg/svgo/issues/1336

Big thanks to @DerianAndre
2021-03-01 17:04:48 +03:00
Bogdan Chadkin
42d75b1f81 Add discord badge (#1379)
Chatting would help with communication.
2021-02-27 14:52:19 +03:00
Bogdan Chadkin
0a11dadc6b Backers -> Donators 2021-02-25 22:30:33 +03:00
Bogdan Chadkin
f92f7dec86 Remove "donations" section 2021-02-25 17:53:32 +03:00
XhmikosR
1310210d4e Use https when possible and fix an inactive domain (#1374) 2021-02-25 13:48:18 +03:00
XhmikosR
83a03ecb8e Tweak README.md (#1375) 2021-02-25 13:18:42 +03:00
Bogdan Chadkin
51f12d1f4f Remove convertStyleToAttrs from defaults in readme 2021-02-24 16:33:44 +03:00
Chris Hayes
797a8e843d Fix npm install script typo (#1368) 2021-02-23 01:52:51 +03:00
Bogdan Chadkin
68e40caaea Add better docs (#1337)
Clarified configuration format, simplified CLI example, described
programming api.
2021-02-19 12:11:58 +03:00
Bogdan Chadkin
b65f6994b2 Simplify CLI usage 2021-02-18 22:04:14 +03:00
Bogdan Chadkin
ed65d170b3 Drop travis and coveralls badges 2021-02-18 21:30:26 +03:00
Shogo Sensui
4b46caa619 Add editor plugins (#1113) 2021-02-18 00:14:21 +03:00
Eric Cornelissen
bb949a9894 Update README.md (#1243)
Add the SVGO Action as an "other way to use SVGO"
2021-02-17 23:57:50 +03:00
Bogdan Chadkin
d761decc0e Drop --enable and --disable flags 2021-02-16 19:17:53 +03:00
Rob OLeary
b85d7f9885 Update README with note on glob support on Windows (#1295)
See issue #1233 .
2021-02-13 23:53:40 +03:00
Eugene Chechuryn
07ca9764f7 Add Figma plugin link to Readme 2019-12-10 21:57:12 +03:00
Marco Fugaro
11f9c79741 Add active column in plugins table to readme 2019-10-03 18:13:53 +03:00
GreLI
cc9ad33082 Add ‘sortDefsChildren’ to default plugins list and readme 2019-07-14 19:37:58 +03:00