clerk icon indicating copy to clipboard operation
clerk copied to clipboard

Local deps?

Open den1k opened this issue 4 years ago • 4 comments

I just painfully found out on a flight that clerk's frontend deps (in my case vega, vega lite, vega embed and katex) are not included in the source and therefore failed fetching in-browser. This is an edge case for sure, but since clerk advertises itself being local first, I think it would be nice for clerk to be able to work offline.

den1k avatar Dec 12 '21 17:12 den1k

True, this is annoying and Clerk should support working completely offline. I'll revisit this after #36 which switches to tailwind's play cdn and is another thing to consider for offline support.

mk avatar Dec 21 '21 20:12 mk

Working on this.

borkdude avatar Mar 15 '22 21:03 borkdude

This has now been addressed in PR #113. Before we merge this, please test commit ccae890217c56a6826d6833af3503e1c52a575b6.

You can cache assets locally, before entering a plane, with:

clojure -X nextjournal.clerk/cache-assets!

But also while using clerk, assets will be cached on first use.

borkdude avatar Mar 23 '22 11:03 borkdude

Anyone? :)

borkdude avatar Mar 28 '22 09:03 borkdude