<div dir="ltr">Alrighty, good to know. I'll put it on my list of stuff to do once I dig into the compiler.<div><br></div><div>Thanks!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 21 mei 2019 om 17:36 schreef Adam Chlipala <<a href="mailto:adamc@csail.mit.edu">adamc@csail.mit.edu</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I can't think of a good way to do it with Ur/Web as it stands. It should <br>
be a pretty simple tweak to the compiler to specify an external program <br>
to run to transform this JavaScript code.<br>
<br>
On 5/21/19 9:05 AM, Simon Van Casteren wrote:<br>
> Hey everybody,<br>
><br>
> I've been breaking my head today on how to do pre-compression of <br>
> static assets, mainly the app.*.js bundle. Currently I'm having Nginx <br>
> do on-the-fly compression using brotli at lvl 4. This causes my <br>
> app.*.js bundle to shrink from 1.8 MB to 145 kB. This is really good <br>
> already, but running it at lvl 11 gets me a 90 kB bundle, still 50% <br>
> less than what I have now! Running it at lvl 11 takes around 5 seconds <br>
> (on my underpowered server) though, which is really quite long.<br>
><br>
> In a normal situation I'd run the brotli compressor at build or <br>
> deployment time, but the app.*.js bundle is never on the filesystem, <br>
> so I haven't found a way to do this pre-compression in an Ur/Web context.<br>
><br>
> Anybody has any ideas?<br>
><br>
> Simon<br>
<br>
_______________________________________________<br>
Ur mailing list<br>
<a href="mailto:Ur@impredicative.com" target="_blank">Ur@impredicative.com</a><br>
<a href="http://www.impredicative.com/cgi-bin/mailman/listinfo/ur" rel="noreferrer" target="_blank">http://www.impredicative.com/cgi-bin/mailman/listinfo/ur</a><br>
</blockquote></div>