diff --git a/Makefile b/Makefile index 5d2d1a33..39511ae9 100644 --- a/Makefile +++ b/Makefile @@ -10,13 +10,11 @@ assets := package.json yarn.lock $(shell find app/assets/ app/javascript/ -type alpine_version := 3.12 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/ $@ - find $@ -type f -name "*.gz" | sed -re "s/\.gz$$//" | xargs -r brotli -k -9 public/packs-production/: public/packs/ 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/