mjs
mjs

Reputation: 22357

Intellij <style rel="stylesheet/less" type="text/css">

When I use:

<style rel="stylesheet/less" type="text/css"> ... </style> 

in intellij, I am getting lots of errors. It seems as if it is not recognizing this syntax. I am using a html file for this tag.

Upvotes: 2

Views: 454

Answers (1)

F00x
F00x

Reputation: 124

the following code worked for me

  <style type="text/less">
  
  </style>

However, the attached less file does not see the variable

<link rel="stylesheet/less" type="text/less" href="index.less" />
To use variables. You can use the syntax

<script>
    less={globalVars: {'color_root': '#fff'}
};
</script>
<script src="less.js" type="text/javascript"></script>
Learn More

Upvotes: 2

Related Questions