An automated SASS base64 inline image generator
gem install sass
gem install smusher
When starting SASS from the command line, be sure to invoke the url64 module:
sass --watch sass:css -r ./sass/functions/url64.rb
Accepts a variety of formats (GIF/JPG/PNG/SVG), in any CSS declaration. Use url64
anywhere you would use a plain old url
. For example:
background-image: url64("../images/image.png")
NB: Be sure to use quotes around your URL, otherwise SASS will throw an error.