Installation of the Ruby environment under Windows, and how to use the Sass,compass

Source: Internet
Author: User

CMD under: ruby-v success



Installation using SASS

1: Removing the http://rubygems.org source

Gem Sources--remove https://rubygems.org/

2: Add Taobao source

Gem Sources-a https://ruby.taobao.org/

3: See if the first two steps were successful

Gem Sources-l


4: Install Sass

Gem Install Sass

Sass-v

5:gem Upgrade

Gem Update

6: Install the sass of the developed version

Gem Install sass-version=3.3

7: List all the locally installed Ruby packages

Gem List

8: Delete the specified version of SASS

Gem Uninstall Sass--version=3.3.0

Compile the. scss file into a CSS file under 9:cmd

Sass Main.scss Main.css




Installation using Compass

1: Installation

Gem Install Compass

2:compass-v

3: Create a project with Compass

Compass Create Learn-compass-init

4: Compiling the current project

Compass compile [address]

5: Listen to the current project

Compass Watch [Address]


This article is from the "Flail Blog" blog, please be sure to keep this source http://jhomephper.blog.51cto.com/8558055/1644007

Installation of the Ruby environment under Windows, and how to use the Sass,compass

Related Article

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.