Skip to content

Commit

Permalink
Add classpath env
Browse files Browse the repository at this point in the history
  • Loading branch information
Panthevm committed Aug 4, 2023
1 parent 2fe7129 commit 9d335e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shadow-cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
:output-dir "_site/assets/js"
:asset-path "/assets/js"
:closure-defines {ui.index/GH-PAGES true
suitkin.utils/GH-PAGES true}
suitkin.utils/CLASSPATH "/suitkin"}
:build-hooks [(stylo.shadow/reload "_site/assets/css/stylo.css")
(ui.build/export)]
:release {:modules {:main {:entries [ui.index]}}}}}}
6 changes: 3 additions & 3 deletions src/suitkin/utils.cljc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns suitkin.utils)

#?(:cljs (goog-define GH-PAGES false)
:clj (def GH-PAGES false))
#?(:cljs (goog-define CLASSPATH "")
:clj (def CLASSPATH ""))

(defn public-src
[src]
(if GH-PAGES (str "/suitkin" src) src))
(str CLASSPATH src))

0 comments on commit 9d335e0

Please sign in to comment.