Compass配置属性中的_dir和_path与http_选项有什么区别?

时间:2015-01-24 07:19:43

标签: sass compass

Compass配置属性的描述非常含糊不清(http://compass-style.org/help/documentation/configuration-reference/)。绝对不清楚,没有任何其他解释或例子。他们在这里:

这些之间有什么区别?

css_dir - ...where the css stylesheets are kept
css_path - ...where css stylesheets are kept
http_stylesheets_path - ...http path to stylesheets on the web server

这些?

sass_dir - ...where the sass stylesheets are kept
sass_path - ...where sass stylesheets are kept

这是非常不可理解的。他们的意思是什么?它们都是一样的:

images_dir - ...where the images are kept
images_path - ...where images are kept
generated_images_dir - ...where generated images are kept
generated_images_path - ...where generated images are kept
http_generated_images_path - ...generated images on the web server

同样的事情:

fonts_dir - ...where the font files are kept
fonts_path - ...where font files are kept
http_fonts_path - ...http path to font files on the web server
http_fonts_dir - ...http path to font files on the web server

如何理解彼此之间的区别?

1 个答案:

答案 0 :(得分:-2)

有助于阅读每个设置的整个描述及其引用的设置。

路径应该是该项目的完整/绝对路径,而dir预计与其他项目相关。

project_path

  

不需要:stand_alone模式,可以通过上下文推断出来。   设置项目根目录的路径。

这是您的项目在文件系统上的绝对路径。

http_path

  

在Web服务器中运行时项目的路径。默认为“/”

这是从网站上看到的项目的绝对路径

css_dir

  

保存css样式表的目录。它与project_path有关。默认为“样式表”。

css_path

  

保存css样式表的完整路径。默认为<project_path>/<css_dir>

http_stylesheets_path

  

Web服务器上样式表的完整http路径。默认为http_path + "/" + css_dir