title: Grunt CSS min - Issue with minifying different CSS files
body: <p>I'm having issue with minifying multiple CSS files using <a href="https://github.com/gruntjs/grunt-contrib-cssmin" rel="nofollow">grunt cssmin</a> I'm not looking to minify all files into single file. I would like to have the files having same name with min.css extension.</p>
  
  <p>My gruntfile.js is as follows.</p>
  
  <pre><code>module.exports = function (grunt) {
      grunt.initConfig({
  
      cssmin: {
          target: {
              files: [{ 
                  src: ['assets/css/*.css', '!assets/css/*.min.css'],  // source files mask
                  dest: 'assets/css/',    // destination folder
                  expand: true,    // allow dynamic building
                  flatten: true,   // remove all unnecessary nesting
                  ext: '.min.css'   // replace .css to .min.css
              }],
              /* BELOW IS ONLY A TRICK USED TO MINIFY THE FILES SKIPPED BY THE ABOVE */
              /*files: [{ 
                  src: ['assets/css/home.css', 'assets/css/institutions.css', 'assets/css/form-elements.css'],  // source files mask
                  dest: 'assets/css/',    // destination folder
                  expand: true,    // allow dynamic building
                  flatten: true,   // remove all unnecessary nesting
                  ext: '.min.css'   // replace .css to .min.css
              }],*/
          }
      }
  });
  
  grunt.loadNpmTasks('grunt-contrib-cssmin');
  grunt.registerTask('default', [ 'cssmin' ]);
  };
  </code></pre>
  
  <p>As per the code (except the commented out part), it is suppose to minify all the css files. But for some reason it skips few css files from the directory. To minify those, I have to comment out the first <code>files[{}]</code> and uncomment the later.</p>
  
  <p>It doesn't work when both <code>files[{}]</code> are uncommented. I'm clueless on why its happening.</p>
  
  <p>My Nodejs version is: v0.10.25</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Note</strong>: I used to get warnings &amp; task aborts on <code>grunt cssmin</code> due to node version issue and got it fixed by downgrading nvm version to <em>nvm v0.10.39</em>. Thanks to <a href="https://github.com/lukebussey/foundationify/issues/23" rel="nofollow">blindMoe for pointing the solution</a></p>