al-quran.reflectslight.io/nanoc/rules/assets.rules
0x1eef 9defa1bb47 Add /durations/
This change fixes SurahStream.tsx by hosting the durations for the
timer locally, within the app, rather than depending on
al-quran.reflectslight.io being accessible (eg when offline).
2023-12-04 02:08:30 -03:00

33 lines
538 B
Ruby

#!/usr/bin/env ruby
# frozen_string_literal: true
##
# Contains rules that are related to assets (eg images, fonts, etc)
##
# Fonts
compile "/fonts/*" do
write(item.identifier.to_s)
filter :gzip
write("#{item.identifier}.gz")
end
##
# Images
compile "/images/*.svg" do
write(item.identifier.to_s)
filter :gzip
write("#{item.identifier}.gz")
end
compile "/favicon.png" do
write(item.identifier.to_s)
end
compile "/images/opengraph/*.png" do
write(item.identifier.to_s)
end
##
# JSON
passthrough "/durations/*/*.json"