Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @ticketmaster/grunt-sass with all npm packages installed. Try it out:

@ticketmaster/grunt-sass lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

require("node-sass/package.json"); // node-sass is a peer dependency. // require("@ticketmaster/grunt-sass/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@ticketmaster/grunt-sass v1.1.0-tm2

Compile Sass to CSS using node-sass

grunt-sass Build Status

Compile Sass to CSS using node-sass

Issues with the output should be reported on the libsass issue tracker.

This task uses libsass which is a Sass compiler in C++. In contrast to the original Ruby compiler, this one is much faster, but is missing some features, though improving quickly. It also doesn't support Compass. Check out grunt-contrib-sass if you prefer something more stable, but slower.


$ npm install --save-dev grunt-sass


require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

    sass: {
        options: {
            sourceMap: true
        dist: {
            files: {
                'main.css': 'main.scss'

grunt.registerTask('default', ['sass']);

Files starting with _ are ignored to match the expected Sass partial behaviour.


See the node-sass options, except for file, outFile, success, error.

The default value for the precision option is 10, so you don't have to change it when using Bootstrap.


MIT © Sindre Sorhus

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free