Closed Typogram closed 10 months ago
I made a minimal repo, fontkit-tiny, to demonstrate building Fontkit for the browser:
Here's a bash script that builds a bundled, minified single-file ES module that can be used in modern browsers: https://gist.github.com/rsms/c806aebbf97240f052b8157d0a69e9c6
@devongovett thanks for providing a working codepen on https://github.com/foliojs/fontkit/issues/77 Could you provide instruction on how to build
fontkit.bundle.js
for browser? In the codepen, you import from this link:Ideally, after run
npm run build
, thedist
folder should include afontkit.bundle.js
ready for browser usage.