Skip to content

Latest commit

 

History

History

tinysvg

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@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/',
});

License

MIT