Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 7efeb62

Browse files
committed
docs(readme): updates min node version
1 parent 0f4007b commit 7efeb62

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ Eleventy plugin to replace `<img>` using `<picture>` with resized and optimized
44

55
This plugin is inspired by [eleventy-plugin-local-respimg](https://github.com/chromeos/static-site-scaffold-modules/tree/main/modules/eleventy-plugin-local-respimg) by [Sam Richard](https://twitter.com/Snugug/).
66

7-
Requires **Node 14.15+**.
7+
Requires **Node v18.17+**.
88

99
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
1010
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
11-
1211
## Table of Contents
1312

1413
- [Features](#features)
@@ -99,7 +98,7 @@ module.exports = function (eleventyConfig) {
9998
| urlPath | `string` | | 🚨 Required<br><br>URL prefix for images src URLS. It should match with path suffix in `imagesOutputDir`. Eg: imagesOutputDir with `_site/images` likely need urlPath as `/images/` |
10099
| extensions | `array` | `["jpg", "png", "jpeg", "svg"]` | File extensions to optmize. |
101100
| formats | `array` | `["avif", "webp", "svg", "jpeg"]` | Formats to be generated.<br><br>⚠️ The <source> tags are ordered based on the order of formats in this array. Keep most compatible format at the end. |
102-
| sizes | `string` | `"100vw"` | Default image [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#sizes) attribute |
101+
| sizes | `string` | `"100vw"` | Default image [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#sizes) attribute |
103102
| minWidth | `number` | `150` | Minimum image width to be generated |
104103
| maxWidth | `number` | `1500` | Maximum image width to be generated |
105104
| hoistImgClass | `boolean` | `false` | Move `class` attribute on `<img>` element to enclosing `<picture>` element. |

0 commit comments

Comments
 (0)