1

I'm having a small problem with Less . I can't seem to get it working. I'm running it client side. It just doesn't create the CSS, the page stays unstyled.

Header

   <!-- Include LESS Stylesheets -->
    <link rel="stylesheet/less" type="text/css" href="/includes/style/general.less" />

    <!-- Include Scripts and Co -->
    <script src="http://cdnjs.cloudflare.com/ajax/libs/less.js/2.6.1/less.min.js"></script>

Index

    <body>

    </body>

general.less

@rcmsblue: #8AE9FD;

body{
  background-color: @rcmsblue;
}

Am I doing something wrong?

dwjohnston
  • 11,163
  • 32
  • 99
  • 194
Pascal Boschma
  • 187
  • 1
  • 14

1 Answers1

0

Questioner might get the solution, here is a good info on slash rules. Few other points to consider when use LESS:

  • Include your stylesheets before the script and when you link more than one, each of them compiled independently so any variables, mixins or namespaces defined in a stylesheet are not accessible in others. Detailed usage information available at http://lesscss.org/usage/
  • And, don't forget to add MIME type that are associated content types served as static files by the web server.

    File name extension: .less
    MIME type: text/css
    
Kunj
  • 1,980
  • 2
  • 22
  • 34