問題描述
我剛剛通過執行以下命令在我的應用程序基目錄中安裝了基礎:
I just installed the foundation in my application base directory by executing the following command:
compass create myprojectname -r zurb-foundation --using foundation
現在我打開了 sass/_settings.scss 文件,我取消了第 66 行的注釋:
Now I have open the sass/_settings.scss file and I have un-comment the 66th line that is the following:
$include-html-classes: true;
最后,我嘗試通過執行以下命令來編譯我的基礎項目以包含 html 類:
finaly, I try to compile my foundation project in order to include the html classes by executing the following command:
compass compile
但我在命令提示符中得到以下結果:
but I am getting the following result in my command prompt:
Nothing to compile. If you're trying to starta new project, you have left off the directory argument.
Run "compass -h" to get help.
另外,基于此頁面:http://foundation.zurb.com/old-docs/f3/compass.php 我嘗試使用以下命令編譯我的 scss 代碼:
also, based on this page : http://foundation.zurb.com/old-docs/f3/compass.php I try to compile my scss code by using the command:
指南針手表
但我再次收到與指南針旁邊的編譯參數相同的消息.
but again I am getting the same message as with compile argument next to compass.
注意:我正在同一目錄中執行上述命令,我為基礎項目創建運行第一個命令.
Note: I am executing the above commands in the same directory I run the first command for the foundation project creationg.
注意:我是 compass、sass、foundation 框架的新手.實際上,今天是我第一次使用它們,所以我不是經驗豐富的用戶.請善待我:)
Note: I am very new user on compass, sass, foundation framework. Actually, today is the first time I am using them, so I am not expirienced user. Please be kind with me :)
有沒有人可以幫我解決這個問題?
Is there anybody to help me with that ?
推薦答案
當您使用 compass create [directory_name]
時,Compass 在 ./[directory_name]
中創建您的項目相對于當前目錄(運行 compass create
沒有目錄名稱會在當前目錄中創建項目).為了編譯或觀看 Compass 項目,您需要執行以下任一操作:
When you use compass create [directory_name]
, Compass creates your project within ./[directory_name]
relative from your current directory (running compass create
without the directory name would have created the project in the current directory). In order to compile or watch a Compass project, you need to do either of the following things:
- 通過
compass compile [path_to_config.rb]
告訴 Compass 你的項目在哪里 - 切換到config.rb所在目錄,運行
compass compile
或者,您可以將 config.rb 移動到要運行命令的位置.只需確保編輯在所述文件中配置的目錄的路徑即可.
Alternately, you could move your config.rb to where you want to run your command. Just make sure you edit the paths to directories configured within said file.
這篇關于無法編譯現有項目,因為 Compass 找不到它的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!