我对在windows上使用指南针应用程序很感兴趣。我买了这个产品,但它绝对没有文档。(失败)我不知道如何使用它。
我创建了一个项目并得到了这个结构
directory compassProject/
directory stylesheets/
directory project/
create manifest.rb
create _main.scss
create screen.scss 我假设我要在某个地方编辑一个css文件,并且compass会使用SASS在其他地方重写它?
提前感谢Teedub
发布于 2014-12-05 23:16:10
对于Windows,您需要安装Ruby (必需)。到目前为止,建议您使用Ruby1.9.3安装程序: RubyInstallers:Ruby 1.9.3-p550
一旦安装了Ruby,请安装Compass:
gem install compass
有关安装Ruby For Windows的更多信息,请参阅我在此主题上发表的帖子:http://jimfrenette.com/2014/11/compass-on-windows/
sass 设置sass要从项目sass文件夹中自动编译style.scss,请执行sass style.scss命令。无论何时保存style.scss文件,都会使用所有适用的浏览器扩展名、可重用属性等编写相应的style.css。
# change to your sass folder in your project directory
# e.g., cd ~/mywebsite/sass
$ sass --watch style.scss:../css/style.css
>>> Sass is watching for changes. Press Ctrl-C to stop.
←[32m write ../css/style.css
←[0m←[32m write ../css/style.css.map
←[0m这篇文章详细介绍了使用波旁,一个类似的,更轻的指南针替代方案,可能会有帮助,如果你感兴趣:http://jimfrenette.com/2014/10/bourbon/
https://stackoverflow.com/questions/18814383
复制相似问题