Sass基础--入门
来源:互联网 发布:android sdk mac 下载 编辑:程序博客网 时间:2024/06/08 07:09
安装rubyinstaller
点击安装
安装完成之后 在控制台输入 gem 命令检查是否成功
建立项目目录
compass create <项目文件夹名称> 命令使用当前目录创建项目 <创建项目文件夹>
编译
编译sass : sass 或者 compass compile
监视Sass文件 : sass –watch :
监视文件夹 : ass –watch : 或者 compass watch
compass watch 只监视改变的文件 如果想全部文件重新编译 : compass watch –force
输出风格
compass watch --output_style <nestd / xpanded / compact / compresed>nested expandedcompact 每个选择器一行显示compressedcompass watch --output_style nested --environment production 去掉注释
/! 这是重要注释 / 压缩也会显示出来 -> 前面加一个感叹号
如果是中文注释
在你的安装路径里 我的是 C:\Ruby24-x64\lib\ruby\gems\2.4.0\gems\sass-3.4.25\lib\sass
module Sass下面写上
Encoding.default_external = Encoding.find(‘utf-8)
注意了 项目目录不要有中文地址哦,不然会报错
阅读全文
0 0
- sass基础入门
- Sass基础--入门
- 前端利器:SASS基础与Compass入门
- 【Sass】SASS入门
- sass 入门
- sass入门
- SASS入门
- Sass入门
- SASS入门
- sass入门
- sass入门
- SASS入门
- sass入门
- sass入门
- sass入门
- Sass入门
- Sass基础
- sass基础
- IntelliJ IDEA 编译方式介绍及编译器的设置和选择
- Python常用学习库汇总
- Dubbo配置含义
- statement和preparedstatement的区别
- C++ 编程出错的地方(考试选择题易错点)
- Sass基础--入门
- Starting the Hive Metastore in CDH
- double类型四舍五入问题
- CAN波特率配置
- An Introduction to Flask 1~7
- POJ1113:Wall(凸包)
- hive 2.1.1 安装记录
- There is no getter for property named 'pid' in 'class java.lang.Long'
- 软件测试[(美)Ron Patton]第4章