Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

process() method is deprecated #113

Closed
joseluisq opened this issue May 27, 2015 · 16 comments
Closed

process() method is deprecated #113

joseluisq opened this issue May 27, 2015 · 16 comments

Comments

@joseluisq
Copy link

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
Copy link

t0lkman commented May 27, 2015

confirm!

@joseluisq
Copy link
Author

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
Copy link

+1

2 similar comments
@hum-n
Copy link
Contributor

hum-n commented May 28, 2015

+1

@jillmolloy
Copy link

+1

@ai
Copy link

ai commented May 28, 2015

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

@joseluisq
Copy link
Author

@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
Copy link

ai commented May 28, 2015

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

@joseluisq
Copy link
Author

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

@ai
Copy link

ai commented May 28, 2015

@joseluisq yeap, I recommends grunt-postcss.

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

@joseluisq
Copy link
Author

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

@ai
Copy link

ai commented May 29, 2015

@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
Copy link
Owner

nDmitry commented May 29, 2015

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

@ai
Copy link

ai commented May 29, 2015

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

@nDmitry
Copy link
Owner

nDmitry commented May 29, 2015

@ai so be it)

@nDmitry
Copy link
Owner

nDmitry commented May 29, 2015

Ok, guidelines are passed too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants