Sass Scss with Sublime

Source: Internet
Author: User
Tags sublime text

1. Open Sublime, install package Sass, Sass Build, Sublimeonsavebuild

2. If SASS is not installed, open the Iterm,gem (Ruby tool) installation Sass

sudo Install Sass

3. Configure the compilation directory

Open Sublime

Tools-Build system-New build system, paste code-Save (Mysass.sublime-build)

Tools-Build System-Mysass

{    "cmd": ["Sass", "--update", "$file: ${file_path}/. /css/${file_base_name}.css ","--stop-on-error ","--no-cache ","--style "," expanded ","--sourcemap=none "],    "selector": "Source.sass, Source.scss",    "Line_regex": "Line ([0-9]+):",    "OSX":    {        "path": "/usr/local/bin: $PATH"    },    "Windows":    {        " Shell ":" True "    }}

4. Do not compile the file beginning with the underscore _

Sublime text, Preferences, package Setting, Sublimeonsavebuild, Settings-user

{    "Filename_filter": "(/|\\\\|^) (?! _) (\\w+) \ \. (CSS|JS|SASS|LESS|SCSS) $ "}

Sass Scss with Sublime

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.