title: Grunt task Sass on several files in several folders using parameters
body: <p>I have a folder with differents design project, on each one I may have scss files to compile. So I did a Gruntfile to watch on all this folders for the scss files and I want to compile them in their directory. But it' actually not working because of this error : </p>
  
  <pre><code>Running "sassAll" task
  
  Running "sass:animating-rocket" (sass) task
  Verifying property sass.animating-rocket exists in config...ERROR
  &gt;&gt; Unable to process task.
  Warning: Required config property "sass.animating-rocket" missing. Use --force to continue.
  
  Aborted due to warnings.
  </code></pre>
  
  <p>It seems that a variable is not define on the config scope... </p>
  
  <p>My Gruntfile looks like this :</p>
  
  <pre><code>module.exports = function (grunt) {
  
      grunt.initConfig({
          pkg: grunt.file.readJSON('package.json'),
  
          sass: {
              dist: {
                  options: {
                      style: 'compressed'
                  },
                  files: [{
                      src: ['&lt;%= grunt.task.current.args[0] %&gt;/*.scss'],
                      dest: '&lt;%= grunt.task.current.args[0] %&gt;',
                      ext: '.css'
                  }]
              }
          },
  
          watch: {
              options: {
                  livereload: true
              },
  
              css: {
                  files: ['**/*.scss'],
                  tasks: ['sassAll'],
                  options: {
                      spawn: false
                  }
              }
          }
  
      });
  
      grunt.loadNpmTasks('grunt-contrib-sass');
      grunt.loadNpmTasks('grunt-contrib-watch');
  
      grunt.registerTask('sassAll', function () {
          gruntUtils.sassTasks.forEach(function (param) {
              grunt.task.run('sass:' + param);
          });
      });
  
      var gruntUtils = {
          sassTasks: ['animating-rocket', 'hamburger-animation']
      };
  
      grunt.registerTask('default', ['sassAll', 'watch']);
  
  };
  </code></pre>