すべてのファイルがマージされて縮小された後にのみ LessTransform が適用されるため、これは可能ではないようです。
public class LessTransform : IBundleTransform
{
public void Process(BundleContext context, BundleResponse response)
{
response.Content = LessWeb.Parse(response.Content, (DotlessConfiguration) ConfigurationManager.GetSection("dotless"));
response.ContentType = "text/css";
}
}
バンドル時に何らかの方法でより少ないファイルを前処理する方法はありますか?