5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 16:06:21 +00:00

assets más livianos

This commit is contained in:
f 2020-11-19 21:24:49 -03:00
parent 5e15653b2d
commit 10e9a16321

View file

@ -10,13 +10,11 @@ assets := package.json yarn.lock $(shell find app/assets/ app/javascript/ -type
alpine_version := 3.12 alpine_version := 3.12
public/assets-production/: $(assets) public/assets-production/: $(assets)
RAILS_ENV=production bundle exec rake assets:precompile webpacker:compile assets:clean RAILS_ENV=production bundle exec rake assets:precompile assets:clean
rsync --delete-after -a public/assets/ $@ rsync --delete-after -a public/assets/ $@
find $@ -type f -name "*.gz" | sed -re "s/\.gz$$//" | xargs -r brotli -k -9
public/packs-production/: public/packs/ public/packs-production/: public/packs/
rsync -a --delete-after $< $@ rsync -a --delete-after $< $@
find $@ -type f -name "*.gz" | sed -re "s/\.gz$$//" | xargs -r brotli -k -9
assets: public/assets-production/ public/packs-production/ assets: public/assets-production/ public/packs-production/