我已经将Zurb Foundation sass安装到了一个表达引擎项目中,但是在保存app.scss文件时我得到了这个:
Compass无法编译项目中的一个或多个文件:
您必须从项目目录编译单个样式表.
我的所有路径都是正确的,因为它们与另一个工作正常的项目相同.
知道是什么触发了这个错误,所以我可以追查这个问题吗?
我有以下目录结构(仅显示相关位用于说明目的):
proj \
\ Gruntfile.js
\ package.json
\ test \ (all my tests are in this folder structure)
\ app \
\ index.html
\ scripts \ (all my scripts are in here)
\ views \ (all views are in here)
\ styles \
\ style.css
\ oldie.css
\ print.css
\ images \
\ hires \ (all high resolution images are here)
\ lowres \ (all low resolution images are here)
Run Code Online (Sandbox Code Playgroud)
我的Gruntfile.js文件的罗盘部分如下所示:
compass: {
options: {
require: "susy",
sassDir: '<%= my.app …Run Code Online (Sandbox Code Playgroud) 我刚刚通过执行以下命令在我的应用程序基目录中安装了基础:
compass create myprojectname -r zurb-foundation --using foundation
Run Code Online (Sandbox Code Playgroud)
现在我打开sass/_settings.scss文件,我取消注释第66行,如下所示:
$include-html-classes: true;
Run Code Online (Sandbox Code Playgroud)
最后,我尝试编译我的基础项目,以便通过执行以下命令来包含html类:
compass compile
Run Code Online (Sandbox Code Playgroud)
但我在命令提示符下得到以下结果:
Nothing to compile. If you're trying to starta new project, you have left off the directory argument.
Run "compass -h" to get help.
Run Code Online (Sandbox Code Playgroud)
另外,基于这个页面:http://foundation.zurb.com/old-docs/f3/compass.php我尝试使用以下命令编译我的scss代码:
罗盘手表
但我又得到了与罗盘旁边的编译参数相同的信息.
注意:我在同一目录中执行上面的命令我运行基础项目creationg的第一个命令.
注意:我是指南针,sass,基础框架的新用户.实际上,今天是我第一次使用它们,所以我不是用户.请和我好心:)
有人帮我这个吗?