Alessandro Minoccheri
Alessandro Minoccheri

Reputation: 35963

.less doesn't work on windows server?

I have a site hosted by a windows server, I usually use a linux server and in my website I'm using .less instead of normal .css. The problem now is on windows server when I load a page It cannot be found .less into my directory. The file is in It in the right position and if I rename into style.css and change the called to less it takes the css. Is .less incompatibility on windows server? I never had this problem with .less Why on windows server .less doesn't work? I have to change something in my code? I cannot change something in the server because isn't mine is a server on Aruba.

<link rel="stylesheet/less" href="css/styles.less" type="text/css" />
<script type="text/javascript" src="js/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/less-1.3.0.min.js"></script>

Upvotes: 1

Views: 1275

Answers (2)

Robert Went
Robert Went

Reputation: 3072

You need to run the less through a compiler such as winless, simpleless or crunch.

Upvotes: 0

Jan Johansen
Jan Johansen

Reputation: 2059

You need to add the .less file extension to IIS.

Right-click your website and select properties, then HTTP Headers and add the MIME type.

Upvotes: 2

Related Questions