postcss / autoprefixer

Parse CSS and add vendor prefixes to rules by Can I Use
https://twitter.com/autoprefixer
MIT License
21.58k stars 1.25k forks source link

Autoprefixer in PostCSS seems doesn't works #1423

Closed yourchoice closed 2 years ago

yourchoice commented 2 years ago

Warning: [object Object] is not a PostCSS plugin Use --force to continue.

postcss: {
    options: {
        processors: [                                       
            require(nmPathGlogal+'autoprefixer')({overrideBrowserslist: 'last 2 versions'}),                    
        ]               
    },      
    site: {
        src: '../dist/css/site/*.css'
    },
}

I get the above warning in grunt

ai commented 2 years ago

This error is coming when you use PostCSS 7 with PostCSS 8 plugin.

Update gulp-postcss to the latest version (and be sure that you are installed postcss to your package.json dependencies).