Join John Riviello for an in-depth discussion in this video Configure Grunt-Sass, part of CSS to Sass: Converting an Existing Site.
- With Grunt-Sass installed,…now we can create our Grunt file…and configure it to compile Sass.…We'll go to File, New File,…and we're going to call this Grunt File dot js.…Convention is to make sure that it's capitalized…because the original version of Grunt required that,…but now it's no longer needed…but it is still good to be consistent.…And every Grunt file starts off with a wrapper function…that uses the Node JS module system,…so let's start off by creating that,…the module that exports,…and that expects an argument which we'll name Grunt.…
Most Grunt tasks rely on configuration data…to find in an object passed into the Grunt,…InitConfig method,…and our case will be the same so we'll create that,…and that takes an object as an argument.…We also need to load in the actual Grunt plugin…which is the Grunt-Sass Dependency we added…to our package dot jsn previously.…Grunt dot load NPM task, Grunt-Sass,…and now let's add some configuration for our Sass…inside of InitConfig.…
The task name is Sass.…Most Grunt plugin authors make this easy to know…
In these Sass tutorials, students will learn the benefits of libSass over the original Ruby Sass, and set up a Sass-friendly development environment with Node.js and Grunt. A unique aspect of this course is learning how to handle challenges specific to integrating Sass with an existing website, such as new debugging workflows and the variables and mixins worth the effort to define. Author John Riviello also introduces a few Sass tools that speed up media query handling, automatic browser prefixing, and sprite generation. At the end of the course, he shows how your setup work pays off, styling a whole new section of the practice site in just 15 minutes.
- Deciding between Ruby Sass or libSass
- Installing Node.js and Grunt-Sass
- Converting CSS to SCSS
- Creating core variables and mixins
- Abstracting units and values
- Applying advanced mixins
- Generating image sprites with eyeglass-spriting
- Creating high-DPI sprites
- Building new styles
Skill Level Intermediate
Design the Web: Pie Charts with CSSwith Chris Converse25m 29s Beginner
1. Getting Started
2. Creating Core Variables and Mixins
3. Useful Sass Tools
Use a mixin library4m 58s
4. Applying What We've Learned
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.