Fork me on GitHub
#reagent
<
2016-07-19
>
renlore09:07:49

hi is there any way to further reduce the file size of the generated js file?

renlore09:07:41

i used the reagent template and tried uberjar it, the js file is about 360k is that the usual file size?

reefersleep10:07:39

@nidu: can you give an example of what you're trying to do?

nidu11:07:18

@reefersleep: i tried to use TransitionMotion from (react-motion)[https://github.com/chenglou/react-motion#transitionmotion-], which requires function as a child. I tried to wrap with adapt-react-class and just pass a function as children, but it says that it requires only one child. That's where i thought - maybe reagent wraps children in array regardless of child count.

martinklepsch11:07:55

@renlore: did you use advanced optimizations? is that with gzip?

reefersleep11:07:37

@nidu: That's out of my knowledge boundary, sorry 🙂 And I can't delve into it right now. I was thinking of a much simpler problem 🙂

nidu11:07:15

@reefersleep: well the task is simple, but it took ridiculously long to implement. Thanks anyway!

reefersleep11:07:31

Hope you figure it out!