Skip to content

Commit

Permalink
fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelz committed Dec 15, 2023
1 parent b3ace9e commit 9c718f2
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 18 deletions.
1 change: 1 addition & 0 deletions js/capture.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as http from "https";
import imagemin from "imagemin";
import imageminWebp from "imagemin-webp";
import imageminMozjpeg from "imagemin-mozjpeg";
import fetch from "node-fetch";

// const http = require("https"); // or 'https' for https:// URLs

Expand Down
165 changes: 148 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"capture-website": "^4.0.0",
"imagemin": "^8.0.1",
"imagemin-mozjpeg": "^10.0.0",
"imagemin-webp": "^8.0.0"
"imagemin-webp": "^8.0.0",
"node-fetch": "^3.3.2"
}
}

0 comments on commit 9c718f2

Please sign in to comment.