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

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.

主站蜘蛛池模板: 崇仁县| 安丘市| 冕宁县| 赫章县| 奎屯市| 天台县| 格尔木市| 新营市| 铜山县| 阿克苏市| 如皋市| 南阳市| 四会市| 临桂县| 随州市| 吉安市| 延寿县| 沁水县| 吉安县| 铁岭市| 淳安县| 武义县| 凤翔县| 南召县| 沧州市| 阿合奇县| 贡嘎县| 兰溪市| 大姚县| 田东县| 宽甸| 海阳市| 霍林郭勒市| 清原| 重庆市| 睢宁县| 绥中县| 新建县| 龙里县| 合水县| 灯塔市|