警告:[对象]不是POSTSS插件。GruntJS带自动刷新器
我正在尝试将PostSS插件autoprefixer与grunt一起使用。我已经阅读了很多相关的文章和Stackoverflow的答案,但我仍然得到了“警告:[object]不是PostCSS插件使用——强制继续”警告:[对象]不是POSTSS插件。GruntJS带自动刷新器,gruntjs,postcss,autoprefixer,Gruntjs,Postcss,Autoprefixer,我正在尝试将PostSS插件autoprefixer与grunt一起使用。我已经阅读了很多相关的文章和Stackoverflow的答案,但我仍然得到了“警告:[object]不是PostCSS插件使用——强制继续” 目前还不确定根本原因是什么,但将autoprefixer降级到版本9可以解决问题 package.json "devDependencies": { "grunt": "^1.4.0", "gr
目前还不确定根本原因是什么,但将autoprefixer降级到版本9可以解决问题
package.json
"devDependencies": {
"grunt": "^1.4.0",
"grunt-contrib-sass": "^2.0.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-postcss": "^0.9.0",
"postcss": "^8.3.0",
"autoprefixer": "^9.8.6"
}
package.json
"devDependencies": {
"grunt": "^1.4.0",
"grunt-contrib-sass": "^2.0.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-postcss": "^0.9.0",
"postcss": "^8.3.0",
"autoprefixer": "^9.8.6"
}