From 9da9136a60a14864fd222ed3ec7b1f44c3947365 Mon Sep 17 00:00:00 2001 From: Andrea Amantini Date: Wed, 26 Jul 2023 18:15:00 +0200 Subject: [PATCH] Do extract classes from built-in index --- src/nextjournal/clerk/builder.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nextjournal/clerk/builder.clj b/src/nextjournal/clerk/builder.clj index c8b7ef632..2ad2fd141 100644 --- a/src/nextjournal/clerk/builder.clj +++ b/src/nextjournal/clerk/builder.clj @@ -314,6 +314,9 @@ ;; are treated as ES modules and this is not the case of our tw config. (spit tw-input (slurp (io/resource "stylesheets/viewer.css"))) + ;; extract classes from built-in index + (fs/copy builtin-index (fs/path tw-folder "index.clj") {:replace-existing true}) + (if (custom-js-bundle? resource->url) (spit (str tw-folder "/viewer.js") (slurp (let [js-url (get resource->url "/js/viewer.js")]