Path 指南针和字体的路径问题
这是我的config.rb:Path 指南针和字体的路径问题,path,compass-sass,font-awesome,Path,Compass Sass,Font Awesome,这是我的config.rb: # Require any additional compass plugins here. require 'font-awesome-sass' require 'bootstrap-sass' # Set this to the root of your project when deployed: http_path = "/" css_dir = "css" sass_dir = "sass" images_dir = "images" javascri
# Require any additional compass plugins here.
require 'font-awesome-sass'
require 'bootstrap-sass'
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "js"
和my styles.scss:
@import "bootstrap-variables";
@import "bootstrap";
@import "font-awesome-compass";
@import "font-awesome";
@import "theme";
问题是我编译的css是:
css/styles.css
css/font-awesome/font-awesome.css
font-awesome.css字体面导致:../font
这不起作用,应该是:
../../font
或者css/font-awesome.css,而不是在子目录中
知道怎么解决吗
谢谢。:) 您还需要在config.rb中包含字体目录 fonts_dir=“[path]/fonts”