first commit
This commit is contained in:
54
build/node_modules/imagemin-svgo/readme.md
generated
vendored
Normal file
54
build/node_modules/imagemin-svgo/readme.md
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
# imagemin-svgo [](https://travis-ci.org/imagemin/imagemin-svgo) [](https://ci.appveyor.com/project/ShinnosukeWatanabe/imagemin-svgo/branch/master)
|
||||
|
||||
> [SVGO](https://github.com/svg/svgo) imagemin plugin
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install imagemin-svgo
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const imagemin = require('imagemin');
|
||||
const imageminSvgo = require('imagemin-svgo');
|
||||
|
||||
imagemin(['images/*.svg'], 'build/images', {
|
||||
use: [
|
||||
imageminSvgo({
|
||||
plugins: [
|
||||
{removeViewBox: false}
|
||||
]
|
||||
})
|
||||
]
|
||||
}).then(() => {
|
||||
console.log('Images optimized');
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### imageminSvgo([options])(buffer)
|
||||
|
||||
Returns a `Promise<Buffer>`.
|
||||
|
||||
#### options
|
||||
|
||||
Type: `Object`
|
||||
|
||||
Pass options to [SVGO](https://github.com/svg/svgo#what-it-can-do).
|
||||
|
||||
#### buffer
|
||||
|
||||
Type: `Buffer`
|
||||
|
||||
Buffer to optimize.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [imagemin](https://github.com/imagemin)
|
||||
Reference in New Issue
Block a user