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

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.

主站蜘蛛池模板: 遂川县| 娄底市| 溧水县| 奎屯市| 贵港市| 洪洞县| 防城港市| 大方县| 滕州市| 红桥区| 东兰县| 仁布县| 盐边县| 沅江市| 满洲里市| 阿瓦提县| 荥阳市| 左权县| 东兴市| 色达县| 高邮市| 光山县| 昭平县| 梁河县| 丹江口市| 滦南县| 巴南区| 潞城市| 政和县| 诸城市| 乌拉特后旗| 龙里县| 福贡县| 西昌市| 水城县| 保康县| 阜阳市| 顺昌县| 金坛市| 平定县| 奈曼旗|