A cloudflare workers to generate placeholder image
It use rollup to build.
To build use the following command
$ npx wrangler dev- make node_modules dependency work again
- fix pureimage-js that is in node_modules to works with cloudlfare workers (import png/browser + replace Buffer.concat)
- pureimage-js (index.js): replace
import 'pngjs'byimport 'pngjs/browser' - pureimage-js (bitmap.js): replace
this.data = Buffer.alloc(w*h*4);bynew Uint8Array(w*h*4); - make index import 'pureimage.mjs' as module (as defined in package.json module)