mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 22:08:05 +08:00
* Add support to x vversion from npm * Add support to x vversion from npm * Add support to x vversion from npm * Add documentation for current repository
21 lines
864 B
Markdown
21 lines
864 B
Markdown
# Svgo <Badge text="v3.9.0+"/>
|
|
|
|
This project provides svg compression processing optimization. Based on [svgo](https://github.com/svg/svgo).
|
|
|
|
```bash
|
|
npm run svgo
|
|
```
|
|
|
|
Many online downloads or svg exported by `Sketch` will have a lot of redundant and useless information, greatly increasing the size of svg. We can optimize it with `svgo`. For example, the following figure is an svg exported by `Sketch`
|
|

|
|
|
|
We can execute `npm run svgo`
|
|
|
|

|
|
|
|

|
|
|
|
Useless information is processed.
|
|
|
|
More detailed configuration can be configured in `/src/icons/svgo.yml`.
|