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

Commit 8d8231e

Browse files
authored
Update readme.md
Greetings from the Netlify Docs team! I’m proposing a small update to your README. The goals: - Ensure that users learn how to install through the Netlify UI - Align it with some recent changes we’ve made to our [file-based installation instructions](https://docs.netlify.com/configure-builds/build-plugins/#file-based-installation) for Build Plugins Feel free to edit and merge as you see fit.
1 parent c6c66dd commit 8d8231e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

readme.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@ Optimize images as part of your Netlify build process. Optimizes PNG, JPEG, GIF
88

99
## Install
1010

11-
To install, add the following lines to your `netlify.toml` file:
11+
You can install this plugin in the Netlify UI from this [direct in-app installation link](https://app.netlify.com/plugins/netlify-plugin-image-optim/install) or from the [Plugins directory](https://app.netlify.com/plugins).
12+
13+
To use file-based installation, add the following lines to your `netlify.toml` file:
1214

1315
```toml
1416
[[plugins]]
1517
package = "netlify-plugin-image-optim"
1618
```
1719

1820
Note: The `[[plugins]]` line is required for each plugin, even if you have other plugins in your `netlify.toml` file already.
21+
22+
To complete file-based installation, from your project's base directory, use npm, yarn, or any other Node.js package manager to add this plugin to `devDependencies` in `package.json`.
23+
24+
```
25+
npm install -D netlify-plugin-image-optim
26+
```

0 commit comments

Comments
 (0)