Closed PeterKottas closed 1 year ago
Hi @PeterKottas,
You are quite right that the optimizeImage.js grew out of proportion. I refactored it and added typescript to it. I still have to test it more, but the code is in #122
Sorry mate, I completely missed the previous comment. Nicely done! I'd have been happy to help as well. Next time ;)
While contributing recently, I found 2 issues.
I'd be happy to refactor and fix both if you are up for it. If the reason for you to keep it in plain javascript was to be able to run in directly in example/package.json -
"export": "next build && next export && node ../src/optimizeImages.js",
note that this can be resolved by using ts-node that can run typescript directly.Let me know if there are any other reasons.