al-quran.reflectslight.io/rules/assets.rules
0x1eef 0073c76fbb Add TheSurahIndex.tsx
TheSurahIndex.tsx provides a list of surahs (aka chapters) from
The Quran. Fix #2.
2023-03-06 17:30:38 -03:00

28 lines
512 B
Ruby

#!/usr/bin/env ruby
##
# Contains rules that are related to assets (eg images, fonts, general CSS, etc)
##
# WebPackage CSS
compile "/css/webpackage.scss" do
filter :sass, syntax: :scss, style: :compact
filter :rainpress
write "/css/webpackge.css"
end
##
# Fonts
compile "/fonts/*" do
write(item.identifier.to_s)
filter :gzip_binary
write("#{item.identifier}.gz")
end
##
# Images
compile "/images/*.svg" do
write(item.identifier.to_s)
filter :gzip_binary
write("#{item.identifier}.gz")
end