.Less file extension not compiled

It works fine, but unfortunately my web host does not support .less file extensions ... When I enter example.com/styles.less, I get an error message.

Error:

Cannot find the page The page you were looking for may have been deleted, its name changed or temporarily unavailable.

When I load another hosting, everything is fine ...

My include:

<link rel="stylesheet/less" type="text/css" href="styles.less">
<script src="less.js" type="text/javascript"></script>
+5
source share
1 answer

You should be able to change the extension to .css(or something else that your web host allows), and it should work anyway. As far as I know, less.js is just looking at rel="stylesheet/less".

This is similar to the documentation: http://lesscss.org/#-client-side-usage

+2
source

All Articles