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's process() method is deprecated and will removed in next major release. Use postcss([autoprefixer]).process() instead #122

Open crixusshen opened 8 years ago

crixusshen commented 8 years ago

"Autoprefixer's process() method is deprecated and will removed in next major release. Use postcss([autoprefixer]).process() instead"

I execute the command, console will appear after this warning, I have not found the options can be configured in the debug, how take out???

The following is my configuration:

autoprefixer: {
  options: {
                diff: false,
                browsers: ['ios 5', 'android 2.3']
            },
            server: {
                options: {
                    map: true
                },
                files: [{
                    expand: true,
                    cwd: '.tmp/styles/',
                    src: '**/*.css',
                    dest: '.tmp/styles/'
                }]
            },
            dist: {
                files: [{
                    expand: true,
                    cwd: '.tmp/styles/',
                    src: '**/*.css',
                    dest: '.tmp/styles/'
                }]
            }
        }
ai commented 8 years ago

Use grunt-postcss with autoprefixer instead of grunt-autoprefixer.

crixusshen commented 8 years ago

thanks ^_^

在 2016年3月19日,下午2:30,Andrey Sitnik notifications@github.com 写道:

Use grunt-postcss with autoprefixer instead of grunt-autoprefixer.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/nDmitry/grunt-autoprefixer/issues/122#issuecomment-198647932