Fork me on GitHub
#clojurescript
<
2016-10-01
>
kenny00:10:18

@darwin Interesting, thanks

rnandan27307:10:00

Is it normal for app.js to have a size of 1.9MB after advanced optimization in project.clj. I am not sure, need help to resolve this. I have used lein uberjar with the default settings of luminus web template

rnandan27307:10:01

Here is the snapshot of project.clj

pvinis08:10:18

can i import a js file from inside cljs? and just call a function in it?

hlolli08:10:37

You could call it from within the html file and call it in cljs with js/fn-name. If you want full power of code reduction and optimization you would create an extern. Many articles you can find on that.

turbopape10:10:56

Hey Peopel, how do I translate clojure’s extend to extend-type ?

turbopape10:10:13

Has this already bee n done by the community ?

turbopape10:10:22

I need it to port a clj project into a cljc one

stvnmllr214:10:51

hopefully easy. anyone bind a textbox in reagent to a number in the model?

stvnmllr214:10:45

any tips on dealing with the on-change event while editing it. but then having it convert to a number once entered? Seems my best options so far is bind to text on change, and then convert to number on blur

dnolen17:10:00

@rnandan273 measure the gzipped size - that’s the only thing that matters.

dnolen17:10:55

@turbopape extend simply doesn’t exist

turbopape18:10:05

Yes I know, thx @dnolen :)

dnolen18:10:32

there’s no real translation or workaround

turbopape18:10:50

But I was wondering if the community didn’t come with some translation etc ...

dnolen18:10:06

it’s simply not possible due to advanced compilation

turbopape18:10:06

okay, I shall maybe rewrite the clojure part then ?

turbopape18:10:21

I mean is there any macro that tranlates extend to extend-type ?

dnolen18:10:59

@turbopape I’m not aware of anything