mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 09:16:37 +02:00
Enable gzip and brotli precompression on dist scripts.
This commit is contained in:
parent
2a7cfbe96f
commit
d792f38026
3 changed files with 24 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
lein trampoline run -m clojure.main scripts/dist-main.clj
|
lein trampoline run -m clojure.main scripts/dist-main.clj
|
||||||
|
|
||||||
|
if [ -x "$(command -v gzip)" ]; then
|
||||||
gzip -9c dist/js/main.js > dist/js/main.js.gz
|
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
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
lein trampoline run -m clojure.main scripts/dist-view.clj
|
lein trampoline run -m clojure.main scripts/dist-view.clj
|
||||||
|
|
||||||
|
if [ -x "$(command -v gzip)" ]; then
|
||||||
gzip -9c dist/js/view.js > dist/js/view.js.gz
|
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
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
lein trampoline run -m clojure.main scripts/dist-worker.clj
|
lein trampoline run -m clojure.main scripts/dist-worker.clj
|
||||||
|
|
||||||
|
if [ -x "$(command -v gzip)" ]; then
|
||||||
gzip -9c dist/js/worker.js > dist/js/worker.js.gz
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue