jrit / web-resource-inliner

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

Replace datauri with fs and mime package #64

Closed TrySound closed 4 years ago

TrySound commented 4 years ago

The new version of datauri has quite a load of dependencies for features which are not in this package.

https://packagephobia.com/result?p=datauri

In this diff I replaced it with more popular mime package (than datauri's mimer) and builtin fs read with base64 encoding.

https://packagephobia.com/result?p=mime

TrySound commented 4 years ago

Friendly ping @jrit

jrit commented 4 years ago

one comment, plus merge conflict needs to be resolved

TrySound commented 4 years ago

@jrit Done