InstallSVGO imagemin plugin
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>
.
Type: object
Pass options to SVGO.
bufferType: Buffer
The buffer to optimize.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4