配置postcss插件在终端出现警告
来源:4-12 Button 章节总结

vital_zh
2023-08-13
A PostCSS plugin did not pass the `from` option to `postcss.parse`. This may cause imported assets to be incorrectly transformed. If you've recently added a PostCSS plugin that raised this warning, please contact the package author to fix the issue.
我的postcss报了这个异常
"postcss-color-mix": "^1.1.0",
"postcss-each": "^1.1.0",
"postcss-each-variables": "^0.3.0",
"postcss-for": "^2.1.1",
"postcss-nested": "^6.0.1",
在配置了postcss-each plugins 的beforeEach后产生的
module.exports = {
plugins: [
require('postcss-each-variables'),
require('postcss-nested'),
require('postcss-each')({
plugins: {
beforeEach: [require('postcss-for'), require('postcss-color-mix')]
}
})
]
}
写回答
1回答
-
张轩
2023-08-14
同学你好
这个应该是 postcss-each 和别的插件的联合使用导致的,这个是它本身插件的问题,我们这里是暂时无法修复的,要等着它进行修复,但是应该不影响使用,可以先这样使用下去。
00
相似问题