I use the following packages in Microsoft Visual Studio 2013:
I create the following bundles in BundleConfig.cs:
var nullBuilder = new NullBuilder();
var styleTransformer = new StyleTransformer();
var nullOrderer = new NullOrderer();
var lessBundle = new Bundle("~/bundles/less").Include("~/Content/master.less");
lessBundle.Builder = nullBuilder;
lessBundle.Transforms.Add(styleTransformer);
lessBundle.Orderer = nullOrderer;
bundles.Add(lessBundle);
var lessLandingBundle = new Bundle("~/bundles/less-landing").Include("~/Content/landing.less");
lessLandingBundle.Transforms.Add(styleTransformer);
lessLandingBundle.Orderer = nullOrderer;
bundles.Add(lessLandingBundle);
This works on debug (true AND false). But when I publish the site to azure websites, I get an empty less file: bundles/less?v=
Does anyone know what I am doing wrong?
I removed dotless and the transformation pakcages and only used Web optimization framework. This way You can set the framework to compile the less code at build time.