jrit / web-resource-inliner

Inlines img, script and link tags into the same file
MIT License
69 stars 30 forks source link

Replace requestTransform with requestResource option #56

Closed TrySound closed 4 years ago

TrySound commented 4 years ago

Ref https://github.com/jrit/web-resource-inliner/issues/54

"request" package is deprecated. In this diff I replaced with with node-fetch and provided more flexible request customisation option.

safer-buffer is no longer necessary as node-fetch provides buffer api out of the box. Required node v10 because node-fetch v3 is gonna require it as well,

TrySound commented 4 years ago

cc @jrit

TrySound commented 4 years ago

Friendly ping @jrit

TrySound commented 4 years ago

@jrit Is this good to go?