Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 72ac611

Browse files
Sam HSam H
authored andcommitted
chore: add instructions for webp stuff to README.md
1 parent 72d4536 commit 72ac611

25 files changed

+2441
-2434
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,27 @@ The OpenForge.io website is built using a combination of [Stencil.js](https://st
3333
npm install
3434
```
3535

36+
#### Install the Google WebP utility from the following link:
37+
https://developers.google.com/speed/webp/docs/precompiled
38+
39+
#### Or install from the command line (Mac OS X):
40+
```
41+
brew install webp
42+
```
43+
44+
#### Make Sure .webp Images are available by running the following commands:
45+
```
46+
for file in src/assets/*.jpg; do cwebp -q 75 "$file" -o "${file%.jpg}.webp"; done
47+
```
48+
49+
```
50+
for file in src/assets/*.png; do cwebp -q 75 "$file" -o "${file%.png}.webp"; done
51+
```
52+
53+
```
54+
for file in src/assets/*.jpeg; do cwebp -q 75 "$file" -o "${file%.jpeg}.webp"; done
55+
```
56+
3657
### Running This Application
3758
```
3859
npm run dev

build.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)