10.0.1 • Published 2 years ago
imagemin-svgo v10.0.1
imagemin-svgo
SVGO imagemin plugin
Install
$ npm install imagemin-svgo
Usage
import imagemin from 'imagemin';
import imageminSvgo from 'imagemin-svgo';
(async () => {
await imagemin(['images/*.svg'], {
destination: 'build/images',
plugins: [
imageminSvgo({
plugins: [{
name: 'removeViewBox',
active: false
}]
})
]
});
console.log('Images optimized');
})();
API
imageminSvgo(options)(buffer)
Returns a Promise<Buffer>
.
options
Type: Object
Pass options to SVGO.
buffer
Type: Buffer
Buffer to optimize.
License
MIT © imagemin
10.0.1
2 years ago
10.0.0
3 years ago
9.0.0
3 years ago
8.0.0
4 years ago
7.1.0
4 years ago
7.0.0
6 years ago
6.0.0
6 years ago
5.2.4
6 years ago
5.2.3
6 years ago
5.2.2
7 years ago
5.2.1
7 years ago
5.2.0
8 years ago
5.1.0
8 years ago
5.0.1
8 years ago
5.0.0
8 years ago
4.2.1
8 years ago
4.2.0
8 years ago
4.1.2
9 years ago
4.1.1
9 years ago
4.1.0
9 years ago
4.0.2
9 years ago
4.0.1
9 years ago
4.0.0
9 years ago
3.0.3
9 years ago
3.0.2
9 years ago
3.0.1
9 years ago
3.0.0
10 years ago
2.1.0
10 years ago
2.0.0
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago