That looks like it is almost there; try uncommenting :optimizations :advanced
as well as :externs and remove the trailing slash from :output-dir. I don't
think the latter actually matters, but for the purposes of debugging I like to
isolate sources of uncertainty.
On Sunday, January 11, 2015 at 1:54:08 PM UTC-5, Jonathon McKitrick wrote:
> > Specify :source-map "path/to/source.map.js" in your :compiler options.
>
> I'm making progress. I couldn't get source-map to work with output-dir and a
> simple filename. It needed the entire path, as you posted.
>
> Next, I had to disable :closure-warnings because of this error:
>
> Compiling "resources/public/js/main.js" failed.
> java.lang.NullPointerException
> at
> com.google.javascript.jscomp.DiagnosticGroupWarningsGuard.disables(DiagnosticGroupWarningsGuard.java:42)
> at
> com.google.javascript.jscomp.ComposeWarningsGuard.enables(ComposeWarningsGuard.java:154)
>
> Here's my current setup. Don't mind the commented-out lines. The current
> issue is that Safari is showing the source maps, but not Firefox or Chrome.
> Source maps are enabled in both browsers.
>
> :cljsbuild {:builds
> {:prod
> {:source-paths ["src/cljs"]
> :compiler {;:output-to "main.js"
> :output-to "resources/public/js/main.js"
> :output-dir "resources/public/js/"
> ;:optimizations :advanced
> ;:pretty-print false
> :preamble ["jquery/jquery-2.1.1.min.js"
> "reagent/react.js"]
> ;:externs ["jquery/jquery-2.1.1.min.js"]
> :source-map "resources/public/js/main.js.map"
> ;:source-map "main.js.map"
> ;:closure-warnings {:extern-validations :off
> :non-standard-jsdoc :off}
> ;:cache-analysis true
> }}}}
--
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.