I had the same issue and solved it by having 3 source paths:
- src (containing the app)
- src-dev (containing the dev version of the logging ns)
- src-prod (containing the production version of the logging ns)

cljsbuild development builds use source paths ["src" "src-dev"] and 
production builds use ["src" "src-prod"]

Seems to work ok. Added benefit of forcing you to put all the varying 
pieces in their own namespaces.
Currently I only have the one log.cljs with a logging function in both 
src-dev and src-prod (with dev version being console.log and prod version 
being a dummy that does nothing).

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to