eleventy-plugin-img
eleventy-img
. Please use that instead!
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.