Why won't my simple LESS file compile in Kademi?

54 views Asked by At

I'm trying to use LESS files on the Kademi platform so it compiles server side instead of in the browser, I have this tag in my normal.html file:

<link href="/theme/assest/less/main.less" rel="stylesheet" media="all">

Is there a way to find out why it's not compiling?

1

There are 1 answers

1
brad On BEST ANSWER

OK, so the problem looks like main.less has a different media type to the other less files. The platform has combined less files to compile them, but main.less is probably missing parameters defined by the other .less files

So to solve the problem you can either

  • change the media type for main.less to 'all'
  • add an @import to main.less to include other less files with the necessary parameters for it to compile