drupal - How to specify rel property for a css file in a libraries.yml file? -


so i'd specify custom rel property css (well, less) file in libraries.yml file in drupal 8.

would possible?

base:   version: version     css:       theme:         css/styles.less: { rel: stylesheet/less } 

the resulting html be:

<link rel="stylesheet/less" href="css/styles.less" media="all" /> 

thank you!

i'm not shure can try :

   base:       version: version         css:           theme:             css/styles.less:                 attributes:                   rel: stylesheet/less 

seen on : https://www.drupal.org/docs/8/theming-drupal-8/adding-stylesheets-css-and-javascript-js-to-a-drupal-8-theme#attributes

edit

or try

 base:       version: version         css:           theme:             css/styles.less: { rel: stylesheet/less } 

or :

base:  version: version     css:       theme:         css/styles.less:              attributes : { rel : stylesheet/less } 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -