al-quran.reflectslight.io/rules/assets.rules

29 lines
512 B
Text
Raw Normal View History

#!/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