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