mirror of
https://github.com/9001/copyparty.git
synced 2025-10-05 10:49:30 +02:00
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:
parent
4fbd6853f4
commit
a75a992951
5 changed files with 47 additions and 25 deletions
|
@ -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
|
||||
|
||||
|
|
4
scripts/deps-docker/brotli.makefile
Normal file
4
scripts/deps-docker/brotli.makefile
Normal file
|
@ -0,0 +1,4 @@
|
|||
all: $(addsuffix .br, $(wildcard prism* easymde*))
|
||||
|
||||
%.br: %
|
||||
brotli -jZ $<
|
|
@ -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%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue