nDmitry / grunt-autoprefixer

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

process() method is deprecated #113

Closed joseluisq closed 9 years ago

joseluisq commented 9 years ago

Last version is v3.0.0

Running "autoprefixer:dist" (autoprefixer) task
Autoprefixer's process() method is deprecated and will removed in next major release. 
Use postcss([autoprefixer]).process() instead
t0lkman commented 9 years ago

confirm!

joseluisq commented 9 years ago

Task

autoprefixer: {
  options: {
    browsers: ['> 1%', 'last 2 versions', 'Firefox ESR', 'Opera 12.1'],
    map: true,
    inline: false,
    sourcesContent: false
  },
  dist: {
    files: [{
      expand: true,
      cwd: '<%= config.app %>/',
      src: '{,*/}*.css',
      dest: '<%= config.app %>/'
    }]
  }
},

Output

image

stevenbriscoeca commented 9 years ago

+1

hum-n commented 9 years ago

+1

jillmolloy commented 9 years ago

+1

ai commented 9 years ago

Just move to grunt-postcss, because it is more official way to use Autoprefixer.

joseluisq commented 9 years ago

@ai Great! So this case I think you may to add to README.md some explaination about this and the official link to grunt-postcss.

ai commented 9 years ago

@joseluisq Autoprefixer’s README.md has link only for grunt-postcss ;).

joseluisq commented 9 years ago

@ai sure In general, do you recommend to use grunt-postcss instead grunt-autoprefixer right? If It's true, Is grunt-autoprefixer deprecated?

ai commented 9 years ago

@joseluisq yeap, I recommends grunt-postcss.

But I can’t deprecate grunt-autoprefixer beause it is not my project.

joseluisq commented 9 years ago

@ai I understand now I will refer to grunt-postcss for official way. Thanks :+1:

ai commented 9 years ago

@nDmitry this issue is not closed yeat, because you didn’t display result.warnings().

BTW, PostCSS Runner Guidelines is highly recommended for Autoprefixers plugins too.

nDmitry commented 9 years ago

@ai do you think I should deprecate this plugin in favour of grunt-postcss?

ai commented 9 years ago

@nDmitry Yeap, grunt-postcss updates faster and it is better for ecosystem. And you need to maintain only one project.

nDmitry commented 9 years ago

@ai so be it)

nDmitry commented 9 years ago

Ok, guidelines are passed too.