Skip to content

Commit

Permalink
Do extract classes from built-in index
Browse files Browse the repository at this point in the history
  • Loading branch information
zampino committed Jul 26, 2023
1 parent b8f0465 commit 9da9136
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nextjournal/clerk/builder.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 9da9136

Please sign in to comment.