How to use `bud-imagemin`?

I want to let bud compress raster images and also vector (SVG) images.
When I inspect the SVGs in the output directory after the build,
I notice that the SVGs are still unminified.

Do I have to explicitly add SVGs/SVG file extension for optimization?

yarn add @roots/bud-imagemin --dev


module.exports = async (app) =>

    // `entry(...)`; `assets(...)`; etc.


Does the order of invocation (e.g. minimize()/imagemin() before/after assets(...))?

So bud-imagemin uses image-minimizer-webpack-plugin, which requires extra configuration for using svgo:

Note: squoosh used for raster images doesn’t support SVGs yet.