SASS安装、配置

来源:互联网 发布:南通醋酸纤维 知乎 编辑:程序博客网 时间:2024/05/22 14:43

1.sass依赖于ruby.安装sass先安装ruby


2.在开始菜单搜索Start Command Prompt with Ruby并运行

直接命令gem install sass会安装失败

这时直接命令:

gem sources --remove https://rubygems.org/                              移除镜像

gem sources -a http://gems.ruby-china.org/                                添加腾讯镜像

gem install sass                 安装成功


hbuilder中预编译配置sass

工具-->预编译器设置-->.sass,.scss-->编辑

触发地址:D:\Ruby23\bin\sass.bat

命令参数:--no-cache %FileName% ../css/%FileBaseName%.css --sourcemap=none --style  expanded



防止sass转化为css后中文注释乱码



0 0
原创粉丝点击