SASS在NetBeans 7.4 [英] SASS In NetBeans 7.4
问题描述
我在Windows 7(64位元)上使用NetBeans 7.4。
我已经安装了Ruby200-x64,所以我可以使用Sass(.scss到.css)。
I'm in use of NetBeans 7.4 on Windows 7 (64 bit). With this I have installed Ruby200-x64 so I can make use of Sass (.scss to .css).
CSS预处理器配置如下: NetBeans:C:\ Ruby200-x64 \bin\sass.bat
The CSS Preprocessors is configured like this in NetBeans: C:\Ruby200-x64\bin\sass.bat
问题:
- 如何在编译后使Sass输出压缩或压缩css?
推荐答案
好的,我发现很简单。
假设您已经在系统上安装了Ruby200和NetBeans 7.4。
Assuming you've installed Ruby200 and NetBeans 7.4 on your system already.
开始使用Ruby启动命令提示符,然后键入 sass -h
。
1 - Start "Start Command Prompt with Ruby" and type sass -h
.
Sidenote:如果您没有Sass安装了: gem install sass
,你会得到最新版本的Sass。在NetBeans中通过单击工具>选项>其他> Sass路径单击搜索设置CSS预处理器,您会得到 C:\Ruby200-x64 \bin\sass.bat
Sidenote: If you don't have Sass installed do: gem install sass
and you'll get latest version of Sass. In NetBeans setup the CSS Preprocessors by clicking on Tools > Options > Miscellaneous > Sass path click on Search and you get C:\Ruby200-x64\bin\sass.bat
您将获得Sass的一些选项,包括 - style NAME
。
You will get a punch of options for Sass including --style NAME
.
2 - 转到您的NetBeans项目,右键单击它的顶层
2 - Go to your NetBeans project, right click at the top level of it
3 - 选择设置配置>自定义,然后弹出名为项目属性的窗口
3 - Select "Set Configuration" > Customize, then window called "Project Properties" pops up
4 - 在项目属性窗口中选择CSS预处理器,然后查找编译器选项
4 - On Project Properties window select "CSS Preprocessors", then look for "Compiler Options"
5 - 对于compact css输出使用 - style compact
。
也提供 - 样式压缩
, - 样式扩展
5 - Use --style compact
for compact css output.
Also available are --style compressed
, --style expanded
屏幕截图
这篇关于SASS在NetBeans 7.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!