O'Reilly logo

Grunt Cookbook by Jurie-Jan Botha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Generating CSS and JavaScript

In this chapter, we will cover the following recipes:

  • Compiling LESS to CSS
  • Compiling Sass to CSS
  • Compiling Stylus to CSS
  • Compiling CoffeeScript to JavaScript
  • Compiling LiveScript to JavaScript
  • Generating source maps for LESS
  • Generating source maps for Sass
  • Generating source maps for CoffeeScript
  • Defining custom functions with LESS
  • Using Stylus plugins

Introduction

Being as most of the technology in use today is based on standards, most notably the ones maintained by the W3C, and the evolution of standards being quite slow, there has always been a community of developers that aim to force evolution by building tools on top of existing antiquated technologies.

Generating CSS and JavaScript code has been around for quite ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required