Compass Sprite returning "File to import not found or unreadable" -
so, i've started using compass framework, , wish start using native spriting feature. in doing so, i've added following top of scss file:
@import 'compass/utilities'; @import "*.png"; @include all-img-sprites;
after compiling, following error:
error path/to/my/project/css/scss/front.scss (line 4: file import not found or unreadable: *.png. load paths: compass::spriteimporter path/to/my/project/css/scss c:/ruby22/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets) compilation failed in 1 files. [finished in 1.7s]
i've looked around solution this, surprise, though there's multiple threads on - can't seem find relevant.
i've tried renaming folders thinking "img" folders might keyworded or something, no avail. below you'll find config.rb.
# set root of project when deployed: http_path = "" # configure sass path sass_path= "path\\to\\my\\project\\css\\scss" # folder locations sass_dir = "css/scss" css_dir = "css" images_dir = "img" fonts_dir = "fonts" javascripts_dir = "js" sprite_load_path = "img" # disable debugging comments display original location of selectors line_comments = false
oh wait, there go! after bit more fiddling about. issue path. removing sprite_load_path config.rb
file, , changing above to:
@import "raw/*.png"; @include all-raw-sprites;
works fine. note img folder still set in config.rb.
Comments
Post a Comment