You can try shadow-build [1], one of my goals was to make switching between 
dev/prod as simple as possible without requiring any code/html changes. It also 
addresses some other things not related to modules but still helpful to make 
dev/production builds as smooth as possible.

Docs are lacking but I have a few examples [2] that should cover most of the 
things you'd want to do in a build setup. Happy to help if you have questions.

Cheers,
/thomas


[1] https://github.com/thheller/shadow-build
[2] https://github.com/thheller/shadow-build-example

On Sunday, December 6, 2015 at 10:48:22 PM UTC+1, ewen wrote:
> Hi,
> 
> The :main option of the ClojureScript compiler is very useful to be able to 
> leave HTML markup identical between dev and production. However, its purpose 
> is defeated when using google closure modules because it can only output one 
> file and require one namespace.
> 
> A possible solution would be to allow :optimzations :none when :modules are 
> enabled. The compiler would emit multiple main files, each requiring the 
> namespaces it depends on.
> 
> Any thoughts on this?
> 
> Ewen.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to