2.0.0 • Published 5 years ago

@jamshop/eleventy-plugin-svg v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago