eleventy-plugins-img
A plugin to perform runtime image transformations.
Installation
Available on npm.
npm install @11ty/eleventy-plugin-img --save-dev
Open up your Eleventy config file (probably .eleventy.js
) and use addPlugin
:
const pluginImg = require("@11ty/eleventy-plugin-img");
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(pluginImg);
};
Read more about Eleventy plugins.
Usage
Not yet.