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

Autoprefixer hangs on non existent filepath #115

Closed Oikio closed 9 years ago

Oikio commented 9 years ago

Hello, I have this config:

module.exports = function (ops) {
  return {
    options: {
      browsers: ['last 2 version', 'ie 9', 'opera 10']
    },
    main: {
      files: [
        {
          expand: true,
          cwd: '.tmp',
          src: ['styles/**/*.css'],
          dest: '.tmp'
        }
      ]
    },
    blocks: {
      files: [
        {
          expand: true,
          cwd: '.tmp',
          src: ['blocks/**/*.css'],
          dest: '.tmp'
        }
      ]
    }
  }
}

When blocks folder does not exist autoprefixer hangs on this task in 3.0.1, 3.0.0 is working fine.

nDmitry commented 9 years ago

Yeah I will come up with a fix for this soon. It is already deployed in grunt-postcss, so check it out if it's urgent.

Oikio commented 9 years ago

@nDmitry Oh, great, will stay on 3.0.0 for a while. Thanks!

0xR commented 9 years ago

I am running into this issue and there are more people who have this issue: https://stackoverflow.com/questions/30604371/yoeman-task-autoprefixerdist-gets-stuck

nDmitry commented 9 years ago

Fixed in 3.0.2