Sha256: c20edbf2f46a67e95a2e493f8b2e65af79a0fa69ca7d04281489987d702e80cc
Contents?: true
Size: 776 Bytes
Versions: 30
Compression:
Stored size: 776 Bytes
Contents
# require 'sprite_factory' namespace :assets do desc 'recreate sprite images and css' task :resprite => :environment do SpriteFactory.report = true # output report during generation SpriteFactory.library = :chunkypng # use simple chunkypng gem to handle .png sprite generation SpriteFactory.layout = :packed # pack sprite sheets into optimized rectangles SpriteFactory.style = :scss # Generates a css.scss file SpriteFactory.cssurl = "image-url('sprites/$IMAGE')" SpriteFactory.run!('vendor/sprites/icons', output_image: 'app/assets/images/sprites/icons.sprite.png', output_style: 'app/assets/stylesheets/sprites/icons.less', selector: '.i-ic-') end end
Version data entries
30 entries across 30 versions & 1 rubygems