Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 7b884e7

Browse files
authored
Update installation instructions
1 parent beac189 commit 7b884e7

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

readme.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ Optimize images as part of your Netlify build process. Optimizes PNG, JPEG, GIF
88

99
## Install
1010

11-
```
12-
npm i netlify-plugin-image-optim
13-
```
14-
15-
## Use
11+
To install, add the following lines to your `netlify.toml` file:
1612

17-
Add as a plugin to your Netlify config file.
18-
19-
```yaml
20-
plugins:
21-
- type: "netlify-plugin-image-optim"
13+
```toml
14+
[[plugins]]
15+
package = "netlify-plugin-image-optim"
2216
```
17+
18+
Note: The `[[plugins]]` line is required for each plugin, even if you have other plugins in your `netlify.toml` file already.

0 commit comments

Comments
 (0)