Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sublime Text 3配置SASS #4

Open
holyzfy opened this issue Apr 25, 2016 · 1 comment
Open

Sublime Text 3配置SASS #4

holyzfy opened this issue Apr 25, 2016 · 1 comment

Comments

@holyzfy
Copy link
Owner

holyzfy commented Apr 25, 2016

最终效果

保存.scss文件时会当前目录下生成同名的css文件,并且自动给css3属性打前缀

安装说明

  1. 安装sass http://sass-lang.com/install

  2. 运行npm install -g postcss-cli autoprefixer

  3. 打开Sublime Text 3

  4. 菜单Preferences > Package Control: Install Package,依次安装

    • Sass
    • SublimeOnSaveBuild
  5. 菜单Preferences > Settings - User,增加

    "show_panel_on_build": false,
  6. 菜单Preferences > Browse Packages会打开一个文件夹,然后打开User文件夹,新建以下文件并保存

    https://gist.github.com/holyzfy/170929ad3928e8d6b8eecef0af0dab69

测试一下吧

新建文件demo.scss并保存,查看当前目录下生成的demo.css,内容示例 https://gist.github.com/holyzfy/51f21b9a01dc51f300e2b1e1936b559c

SASS语法

http://sass-lang.com/documentation/file.SASS_REFERENCE.html

@holyzfy holyzfy changed the title 给Sublime Text 3配置SASS Sublime Text 3配置SASS Oct 11, 2016
@holyzfy
Copy link
Owner Author

holyzfy commented Nov 23, 2016

配置ruby source

gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant