I'm having difficulty converting LESS files to CSS using the .NET Framework Optimization Framework (to minimize and group).
I have a directory containing only LESS files.
I use the following code to combine them and convert to CSS:
var lessBundle = new Bundle("~/st-style-common-2") .IncludeDirectory("~/Admin/Resources/styles/", "*.less"); lessBundle.Transforms.Add(new LessTransform()); lessBundle.Transforms.Add(new CssMinify()); bundles.Add(lessBundle);
I also used the LessTransform class, which is described in detail here .
When debug = "false", the files are converted to standard CSS and compiled into one, as expected.
However, when debug = "true", the files do not translate, leaving fuzzy URLs in the HTML that the browser does not understand, and IIS does not seem to have a handler.
I understand that I could create a handler that will serve these .less files, but I donβt think what I need. Does the LESS optimization platform optimize for CSS even during debugging?
source share