nDmitry / grunt-autoprefixer

Parse CSS and add vendor-prefixed CSS properties using the Can I Use database. Based on Autoprefixer.
MIT License
795 stars 60 forks source link

Fatal error: Unable to write "dist/css/" file (Error code: EISDIR). #111

Closed corysimmons closed 9 years ago

corysimmons commented 9 years ago
module.exports = function(grunt) {

  grunt.initConfig({

    autoprefixer: {
      multiple_files: {
        src: 'src/css/*.css',
        dest: 'dist/css/'
      }
    }

  });

  grunt.loadNpmTasks('grunt-autoprefixer');

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

};
nDmitry commented 9 years ago

In this case you should build files object dynamically:

multiple_files: {
    expand: true,
    flatten: true,
    src: 'src/css/*.css',
    dest: 'dist/css/'
}