Skip to content

Commit 7af2ff6

Browse files
committed
add note about browser REPL leveraging behavior from cljs.cli
1 parent 95386f5 commit 7af2ff6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/clojure/cljs/repl/browser.clj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@
177177

178178
(defn send-static
179179
[{path :path :as request} conn
180+
;; NOTE: :output-to and :output-dir are available here because cljs.cli
181+
;; does this - should maybe rethink that, we need a better way to supply
182+
;; the main JS file to load because it might not be compiler options :output-to
183+
;; i.e. bundler step
180184
{:keys [static-dir output-to output-dir host port gzip?] :or {output-dir "out"} :as opts}]
181185
(let [output-dir (when-not (.isAbsolute (io/file output-dir)) output-dir)]
182186
(if (and static-dir (not= "/favicon.ico" path))

0 commit comments

Comments
 (0)