Lydia
Lydia

Reputation: 69

Grunt can't run SASS (grunt-contrib-sass)

I have configured my Gruntfile.js with this module, but when I run Grunt it's not working, it stops. This is my code:

'use strict';
module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'), 
        sass: {
            dist: {
                files: {
                    'assets/css/estilos.css' : 'assets/css/scss/*.scss'
                }
            }
        }
    });
    grunt.loadNpmTasks('grunt-contrib-sass');
    grunt.registerTask('sass', ['sass']);
};

I have it installed with -g and --save-dev, so, this it what happened:

http://subefotos.com/ver/?2587793b6c11cd7a7b11535357c1354co.jpg

Grunt stays "stand-by", nothing happens, no lines, no errors, no warnings, just write grunt sass and then freeze. I can stop it with Ctrl + C but nothing more.

Which is it the problem? Thanks!

Upvotes: 0

Views: 904

Answers (1)

Alaa Badran
Alaa Badran

Reputation: 1858

I would recommend you using Grunt-SASS instead of grunt-contrib-sass.
Its a binary compiler for sass. I am using it for a while and works fine.

Upvotes: -1

Related Questions