11.0.1 • Published 1 year ago
imagemin-svgo v11.0.1
imagemin-svgo 
SVGO imagemin plugin
Install
npm install imagemin-svgoUsage
import imagemin from 'imagemin';
import imageminSvgo from 'imagemin-svgo';
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
The buffer to optimize.
11.0.1
1 year ago
11.0.0
2 years ago
10.0.1
4 years ago
10.0.0
4 years ago
9.0.0
5 years ago
8.0.0
5 years ago
7.1.0
6 years ago
7.0.0
7 years ago
6.0.0
8 years ago
5.2.4
8 years ago
5.2.3
8 years ago
5.2.2
8 years ago
5.2.1
9 years ago
5.2.0
9 years ago
5.1.0
10 years ago
5.0.1
10 years ago
5.0.0
10 years ago
4.2.1
10 years ago
4.2.0
10 years ago
4.1.2
11 years ago
4.1.1
11 years ago
4.1.0
11 years ago
4.0.2
11 years ago
4.0.1
11 years ago
4.0.0
11 years ago
3.0.3
11 years ago
3.0.2
11 years ago
3.0.1
11 years ago
3.0.0
11 years ago
2.1.0
11 years ago
2.0.0
11 years ago
1.0.2
11 years ago
1.0.1
11 years ago
1.0.0
11 years ago
0.1.1
11 years ago
0.1.0
12 years ago