diff --git a/shadow-cljs.edn b/shadow-cljs.edn index 55f879c..8e29877 100644 --- a/shadow-cljs.edn +++ b/shadow-cljs.edn @@ -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]}}}}}} diff --git a/src/suitkin/utils.cljc b/src/suitkin/utils.cljc index d8ced1c..609d515 100644 --- a/src/suitkin/utils.cljc +++ b/src/suitkin/utils.cljc @@ -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))