Compass adding leading slash when generating sprite
问题 I have just generated a sprite with compass, but for some reason it is adding a leading slash in the generated class url. Is it possible to override this or is it something I have wrong in my config.rb? Thanks for any help. Joe config.rb > http_path = "/" css_dir = "/" sass_dir = "/" images_dir = "img" javascripts_dir = "js" sass > @import "spr/*.png"; @include all-spr-sprites; generated css > .spr-sprite, .spr-female, .spr-male { background: url('/img/spr-s88dfc99cac.png') no-repeat; } 回答1: