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

26 lines
421 B
Text
Raw Normal View History

#!/usr/bin/env ruby
2023-03-11 18:31:44 +01:00
# frozen_string_literal: true
##
2023-03-11 14:45:12 +01:00
# Contains rules that are related to assets (eg images, fonts, etc)
##
# Fonts
compile "/fonts/*" do
write(item.identifier.to_s)
2023-06-30 00:49:42 +02:00
filter :gzip
write("#{item.identifier}.gz")
end
##
# Images
compile "/images/*.svg" do
write(item.identifier.to_s)
2023-06-30 00:49:42 +02:00
filter :gzip
write("#{item.identifier}.gz")
end
compile "/favicon.png" do
write(item.identifier.to_s)
end