官术网_书友最值得收藏!

Introduction

This chapter guides you through the installation of Sass and explains the different ways you can compile your Sass code into static CSS. You will not only learn how to use Sass using the command line interface (CLI), but you will also be introduced to LibSass. LibSass is a C/C++ port of the Sass engine.

Based on LibSass, sass.js is a pure JavaScript implementation of the Sass engine, which enables you to compile Sass code with JavaScript and run sass.js in your browser.

The sass-node is an interpreter of LibSass for Node.js, and it enables you to compile Sass in a Node.js environment. Together with a task runner, such as Gulp or Grunt, you can use the sass-node to set up a build chain for your projects.

In this book, the SCSS syntax for Sass has been used in favor of the original indented Sass, that is, the Ruby-like syntax. You can write your SCSS code in your favorite text editor, but at the end of this chapter, you will also be introduced to some Graphical User Interfaces (GUI) that will help you write and compile your code more easily.

主站蜘蛛池模板: 泾阳县| 靖边县| 鄢陵县| 凌海市| 招远市| 鲁山县| 鄂州市| 南汇区| 邢台市| 迁西县| 双辽市| 蓝山县| 泌阳县| 新邵县| 金沙县| 宁乡县| 铁岭县| 迁安市| 华坪县| 炎陵县| 车致| 宁强县| 乳山市| 额尔古纳市| 孝义市| 绩溪县| 上林县| 牟定县| 宾川县| 调兵山市| 郓城县| 陆良县| 锡林郭勒盟| 青阳县| 青龙| 黄浦区| 望谟县| 巢湖市| 淮北市| 阿鲁科尔沁旗| 东乡族自治县|