An eleventy plugin to minify and optimise SVG
Inlines SVG files and optimises it with SVGO to keep it as small as possible.
npm install --save-dev @sardine/eleventy-plugin-tinysvg
const tinysvg = require('@sardine/eleventy-plugin-tinysvg');
eleventyConfig.addPlugin(tinysvg, {
baseUrl: 'site/_assets/svg/',
});