Svgo 1) is a svg Minifier written in Javascript
You can use it:
The following config file disables the removeViewBox option. Why? Because without any viewBox, you will not be able to resize it via CSS.
// Svgo deletes by default the viewbox
// https://github.com/svg/svgo/blob/main/README.md#default-preset
module.exports = {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
removeViewBox: false
},
},
},
],
};
yarn dlx svgo ..\..\node_modules\bootstrap-icons\icons\filetype-png.svg -o filetype-png.svg