Fork me on GitHub
#luminus
<
2016-10-01
>
rnandan27307:10:17

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

ricardo13:10:13

@rnandan273 I suppose it depends on how much it is doing, and how many Javascript files you’re munging together.

rnandan27313:10:49

here is my project.clj

rnandan27313:10:22

or do we handle gzip at nginx

ricardo13:10:22

Sorry, I can’t go in and check in how many of these are are ClojureScript, how big they are, or what their dependencies are.

ricardo13:10:40

But in your position, that’s where I’d start.

rnandan27313:10:51

ok thanks, wanted to if i have missed on any tasks

ricardo14:10:15

Maybe, but you’ll need to discard first the option that there is indeed a lot being bundled in.

ricardo14:10:20

There’s something I feel I’m missing here. I have a new project just recently created from a Luminus +cljs template. It adds the doo plugin and configuration (like the default build) under :project/dev. I’m used to just setting that under :project/test, when running it with lein with-profile test doo phantom.

ricardo14:10:50

Why have it under :project/dev?

ricardo14:10:38

I’d understand if the default build being referenced was under :project/dev as well, but it’s under :project/test, so wondering what I’m missing here.

ricardo14:10:21

Leaning towards this being a bug in the template...