因此,我想在Drupal8的libraries.yml文件中为css (well,less)文件指定一个自定义的rel属性。
这样的事情有可能发生吗?
base:
version: VERSION
css:
theme:
css/styles.less: { rel: stylesheet/less }生成的HTML将是:
<link rel="stylesheet/less" href="css/styles.less" media="all" />谢谢!
发布于 2017-03-29 15:34:57
我不是舒尔,但你可以试试这个:
base:
version: VERSION
css:
theme:
css/styles.less:
attributes:
rel: stylesheet/less编辑
或者尝试
base:
version: VERSION
css:
theme:
css/styles.less: { rel: stylesheet/less }或者:
base:
version: VERSION
css:
theme:
css/styles.less:
attributes : { rel : stylesheet/less }https://stackoverflow.com/questions/43074813
复制相似问题