ifconfig与Magento 1类似,Magento 2中有什么方法可以有条件地添加CSS资产?这是Magento的一个示例:
<action ifconfig="config_path/group/field" method="addItem">
    <type>skin_css</type><name>css/styles.css</name>
</action>我在Magento 2中尝试了类似的方法,但是没有用:
<head>
    <css src="css/styles.css"
        ifconfig="config_path/group/field" />
</head>它只是ifconfig在前端显示属性:
<link rel="stylesheet" type="text/css" 
    ifconfig="config_path/group/field" 
    href="http://example.com/pub/static/frontend/Magento/luma/en_US/css/styles.css" />Magento 2中有等效的功能吗?