0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-07 23:08:24 -05:00

Enable gzip and brotli precompression on dist scripts.

This commit is contained in:
Andrey Antukh 2017-02-21 12:19:27 +01:00
parent 2a7cfbe96f
commit d792f38026
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
3 changed files with 24 additions and 3 deletions

View file

@ -1,3 +1,10 @@
#!/bin/sh
lein trampoline run -m clojure.main scripts/dist-main.clj
gzip -9c dist/js/main.js > dist/js/main.js.gz
if [ -x "$(command -v gzip)" ]; then
gzip -9c dist/js/main.js > dist/js/main.js.gz
fi
if [ -x "$(command -v bro)" ]; then
bro --verbose --input dist/js/main.js --output dist/js/main.js.br
fi

View file

@ -1,3 +1,10 @@
#!/bin/sh
lein trampoline run -m clojure.main scripts/dist-view.clj
gzip -9c dist/js/view.js > dist/js/view.js.gz
if [ -x "$(command -v gzip)" ]; then
gzip -9c dist/js/view.js > dist/js/view.js.gz
fi
if [ -x "$(command -v bro)" ]; then
bro --verbose --input dist/js/view.js --output dist/js/view.js.br
fi

View file

@ -1,3 +1,10 @@
#!/bin/sh
lein trampoline run -m clojure.main scripts/dist-worker.clj
gzip -9c dist/js/worker.js > dist/js/worker.js.gz
if [ -x "$(command -v gzip)" ]; then
gzip -9c dist/js/worker.js > dist/js/worker.js.gz
fi
if [ -x "$(command -v bro)" ]; then
bro --verbose --input dist/js/worker.js --output dist/js/worker.js.br
fi