golf the sfx-gz by ~27.6 kB;

* 11 kB webdeps: brotli easymde+prism instead of zopfli
* 8 kB jinja2
* 5 kB ftp
* 3 kB improve uncommenter
This commit is contained in:
ed 2023-09-13 23:21:22 +00:00
parent 4fbd6853f4
commit a75a992951
5 changed files with 47 additions and 25 deletions

View file

@ -142,10 +142,11 @@ RUN ./genprism.sh $ver_prism
# compress
COPY zopfli.makefile /z/dist/Makefile
COPY brotli.makefile zopfli.makefile /z/dist/
RUN cd /z/dist \
&& make -j$(nproc) \
&& rm Makefile \
&& make -j$(nproc) -f brotli.makefile \
&& make -j$(nproc) -f zopfli.makefile \
&& rm *.makefile \
&& mv no-pk/* . \
&& rmdir no-pk

View file

@ -0,0 +1,4 @@
all: $(addsuffix .br, $(wildcard prism* easymde*))
%.br: %
brotli -jZ $<

View file

@ -1,10 +1,6 @@
all: $(addsuffix .gz, $(wildcard *.*))
all: $(addsuffix .gz, $(wildcard *.js *.css))
%.gz: %
#brotli -q 11 $<
pigz -11 -I 573 $<
# pigz -11 -J 34 -I 100 -F < $< > $@.first
# disabling brotli after all since the gain is meh
# and it bloats sfx and wheels by like 70%