@sardine/eleventy-plugin-tinysvg
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

@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

Package Sidebar

Install

npm i @sardine/eleventy-plugin-tinysvg

Weekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

14.9 kB

Total Files

9

Last publish

Collaborators

  • petinga
  • marabyte