funcool / clojurescript-unraveled

An open source book about ClojureScript

Home Page:http://funcool.github.io/clojurescript-unraveled/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

4.6.1 -> :asset-path Required

pwhittin opened this issue · comments

The following Clojure code:

(assoc build-opts
                  :main 'leapyears.test.main
                  :output-to "out/tests.js"
                  :output-dir "out/tests"
                  :target :nodejs)

needs to be:

(assoc build-opts
                  :main 'leapyears.test.main
                  :output-to "out/tests.js"
                  :output-dir "out/tests"
                  :asset-path "out/tests"
                  :target :nodejs)

and the following Clojure code:

(assoc build-opts
                      :main 'leapyears.test.main
                      :watch-fn run-tests
                      :output-to "out/tests.js"
                      :output-dir "out/tests"
                      :target :nodejs)

needs to be:

(assoc build-opts
                      :main 'leapyears.test.main
                      :watch-fn run-tests
                      :output-to "out/tests.js"
                      :output-dir "out/tests"
                      :asset-path "out/tests"
                      :target :nodejs)