I have followed this blog post: url to integrate less with Umbraco. Also, while working on my mac, I was using SimpLESS app to compile my less to css which was working successfully. I have uploaded all my less files on the server, with a proper mime type set on the virtual directory. The website doesn't show any file not found or any other error but this url simply shows the content of my less file and doesn't compile as it was doing locally.
Steps followed:
- Added dotless.core.dll to bin folder.
- HTTP handler added to web.config.
- References a less file in master.aspx
- All the less files are under Scripts folder.
Its not working when as per IIS6 the handler for less under web.config was
<!-- LESS --> <add path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler, dotless.Core" />
But when I changed the above to
<remove name="DotLessCss" /> <add name="DotLessCss" verb="*" path="*.less" type="dotless.Core.LessCssHttpHandler, dotless.Core"
for IIS7.5, the server was then able to render less.