20 lines
344 B
Ruby
20 lines
344 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
##
|
|
# Contains rules that are related to assets (eg images, fonts, etc)
|
|
|
|
##
|
|
# 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
|