请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

配置postcss插件在终端出现警告

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')]
		      }
	    })
  ]
}

正在回答 回答被采纳积分+3

1回答

张轩 2023-08-14 09:44:10

同学你好

这个应该是 postcss-each 和别的插件的联合使用导致的,这个是它本身插件的问题,我们这里是暂时无法修复的,要等着它进行修复,但是应该不影响使用,可以先这样使用下去。

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号