@sardine/eleventy-plugin-inline-svg
v0.0.1
Published
An eleventy plugin to inline SVG
Downloads
3
Readme
@sardine/eleventy-plugin-inline-svg
An 11ty plugin to inline 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-inline-svg
How to use it
const inlineSvg = require('@sardine/eleventy-plugin-inline-svg');
eleventyConfig.addPlugin(inlineSvg, {
baseUrl: 'site/_assets/svg/',
});