Showing posts with label css. Show all posts
Showing posts with label css. Show all posts

Thursday, July 5, 2012

Get dotlesscss to show compile errors

If the compile of a .less file fails with dotlesscss it will often just show a blank page. To make it show the compile error, just add a logger to the config (see answer by tony722).

This settings worked for me:


<dotless minifyCss="false" cache="false" web="false" logger="dotless.Core.Loggers.AspResponseLogger" />

See list of options here.

Friday, June 29, 2012

.less files gives 404 or 406 error on IIS

A quick reminder to myself if I ever run into this problem:  When using .less as css it might work fine when running thru Visual Studio but it fails with a 404 or a 406 when deploying to the IIS server. (ie. the CSS is not applied to the web page).

Probable solutions are here (404 - need to specify mime type) and here (406 - need to have consistent types).

Also should have IIS in Integrated Mode, not Classic if possible. Found this tip here