2.0.0 • Published 3 years ago

@jamshop/eleventy-plugin-svg v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

Eleventy Plugin - SVG

A simple shortcode to fetch and optimise SVG assets. Always will always return inline SVG.

Install:

npm install @jamshop/eleventy-plugin-svg

Usage

In .eleventy.js:

eleventyConfig.addPlugin(svgPlugin, {
  input: "src/svg/"
});

In templates:

{% svg "name-of-svg", "optional classnames added to svg element" %}

Filename should be without the extension (plugin assumes .svg).

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago