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
bud.config.js
:
module.exports = async (app) =>
app
// `entry(...)`; `assets(...)`; etc.
.minimize()
.imagemin('lossy')
Does the order of invocation (e.g. minimize()
/imagemin()
before/after assets(...)
)?