SASS installation method:
1. Install Ruby first, download address: http://download.csdn.net/detail/hzf2257/3334439. The installation precautions are as shown below. It is better to install it on the C drive, but it can also be installed on other drives.
2. Open the Ruby command panel and enter: gem install haml and gem install sass
How to convert SASS files to CSS files:
For example: Create a SASS folder on drive D , there is a style.scss file under the folder (both scss and sass are acceptable. Sass files have very strict requirements for code layout, and there are no braces or semicolons. scss does not have such high requirements for code.) Use the following The method can convert sass or scss into css files.
First output D: means finding the D drive;
Then output cd sass means finding the sass folder, where cd is necessary;
Finally output sass>sass --watch style.scss:style.css Convert style.scss to style.css in the sass folder. sass --watch means that it is always monitoring style.scss. As long as scss is updated in the editor, style.css will be automatically updated.