This document discusses using Grunt and SASS together. It begins by introducing Grunt as a JavaScript task runner that can automate tasks like minification, compilation, testing and more. It then explains how to set up a Grunt project by installing Grunt CLI, creating a package.json, Gruntfile.js, and installing Grunt and plugins like SASS and Watch. The document next introduces SASS, noting how it adds features to CSS like variables, nesting, mixins and more. It then demonstrates various SASS features and provides a demo repository link.
Report
Share
Report
Share
1 of 26
More Related Content
When a Sassquatch and a Board get together (or how to use Grunt to chew Sass)
3. When a Sasquatch and a Boar get together
(or how to use SASS and Grunt)
Ricardo Castelhano (@riccastelhano)
Fullstack Dev / Technical Manager / Certified Scrum Master / Certified Zend Engineer
7. Grunt
The JavaScript Task Runner
• “In one word: automation (…) a task runner can do most of that mundane work for you—
and your team—with basically zero effort.”
• “The Grunt ecosystem is huge (…), you can use Grunt to automate just about anything(…)”
• “Like minification, compilation, unit testing, linting, ...” (just check Grunt Plugins Page)
(src: gruntjs.com)
Why?
14. SASS
Syntactically Awesome Style Sheet
• “(…)stylesheets are getting larger, more complex, and harder to maintain(...)”
• “(…)Sass lets you use features that don't exist in CSS yet like variables, nesting, mixins,
inheritance and other nifty goodies that make writing CSS fun again(…)”
(src: sass-lang.com)
Why?