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

Commit c4f31eb

Browse files
Merge pull request #32 from rstavchansky/patch-1
Update readme.md
2 parents c6c66dd + 8d8231e commit c4f31eb

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)