我在编译sass时遇到此错误:
(.../ruby/gems/2.3.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/image.rb:24:in `basename': no implicit conversion of Array into String)
我的Config.rb是这样的:
require 'bootstrap-sass'
require 'compass/import-once/activate'
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "stylesheets"
css_path = "C:/Development/Projects/SparNord.SparNordDotcom/SparNord.SparNordDotcom/css"
sass_dir = "sass"
images_dir = "images"
images_path = "C:/Development/Projects/SparNord.SparNordDotcom/SparNord.SparNordDotcom/images"
javascripts_dir = "javascripts"
javascripts_path = "C:/Development/Projects/SparNord.SparNordDotcom/SparNord.SparNordDotcom/scripts"
cache_path = "C:/temp/sass/"
generated_images_path = "C:/Development/Projects/SparNord.SparNordDotcom/SparNord.SparNordDotcom/images/"
# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed
# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true
# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = false
# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
我试图在没有运气的情况下取消注释relative_assets。
任何帮助都非常受欢迎:)