I don't see anything wrong with your project.clj but I am skeptical for
now. I've implemented TodoMVC (>200LOC) w/ core.async, Om (which means
including React) and the advanced compiled build is ~330K before gzipping,
~85K after gzipping.

David

On Mon, Feb 9, 2015 at 3:01 PM, Viktor Kubinec <[email protected]>
wrote:

> I have written a simple web application using clojurescript ( less than
> 100 lines of clojurescript code). The output file (js) has 1,4 MB. It seems
> too large to me, so I think I am doing something wrong here. Could someone
> please help?
>
> I am using "lein cljsbuild once" command to build the js file.
>
> This is my project.clj file :
>
> (defproject test "0.1.0-SNAPSHOT"
>   :description "bla"
>   :url "bla"
>   :dependencies [[org.clojure/clojure "1.6.0"]
>                  [compojure "1.1.6"]
>                  [org.clojure/data.json "0.2.4"]
>                  [hiccup "1.0.5"]
>                  [garden "1.2.5"]
>                  [com.amazonaws/aws-java-sdk-s3 "1.9.7"]
>                  [org.clojure/clojurescript "0.0-2665"]
>                  [domina "1.0.2"]
>                  [cljs-ajax "0.3.9"]]
>   :source-paths ["src/clj" "src/cljs"]
>   :plugins [[lein-ring "0.8.10"] [lein-cljsbuild "1.0.4"]]
>   :ring {:handler test.core/app :init test.core/init}
>   :cljsbuild {:builds
>               [{;; CLJS source code path
>                 :source-paths ["src/cljs"]
>
>                 ;; Google Closure (CLS) options configuration
>                 :compiler {;; CLS generated JS script filename
>                            :output-to "resources/public/js/test.js"
>
>                            ;; minimal JS optimization directive
>                            :optimizations :advanced
>
>                            ;; generated JS code prettyfication
>                            :pretty-print false}}]})
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to