private static string ConstructArguments(Config config) { string arguments = " --no-color"; if (config.SourceMap) { arguments += " --source-map-map-inline"; } LessOptions options = new LessOptions(config); if (options.StrictMath) { arguments += " --strict-math=on"; } if (options.StrictUnits) { arguments += " --strict-units=on"; } if (options.RelativeUrls) { arguments += " --relative-urls"; } if (!string.IsNullOrEmpty(options.RootPath)) { arguments += $" --rootpath=\"{options.RootPath}\""; } return(arguments); }
private static string ConstructArguments(Config config) { string arguments = " --no-color --js"; LessOptions options = LessOptions.FromConfig(config); if (options.SourceMap || config.SourceMap) { arguments += " --source-map-map-inline"; } if (options.StrictMath) { arguments += " --strict-math=on"; } if (!options.IECompat) { arguments += " --no-ie-compat"; } if (options.StrictUnits) { arguments += " --strict-units=on"; } if (options.RelativeUrls) { arguments += " --rewrite-urls=all"; } if (!string.IsNullOrEmpty(options.RootPath)) { arguments += $" --rootpath=\"{options.RootPath}\""; } if (!string.IsNullOrEmpty(options.AutoPrefix)) { arguments += $" --autoprefix=\"{options.AutoPrefix}\""; } if (!string.IsNullOrEmpty(options.CssComb) && !options.CssComb.Equals("none", StringComparison.OrdinalIgnoreCase)) { arguments += $" --csscomb=\"{options.CssComb}\""; } if (!string.IsNullOrEmpty(options.SourceMapRoot)) { arguments += " --source-map-rootpath=" + options.SourceMapRoot; } if (!string.IsNullOrEmpty(options.SourceMapBasePath)) { arguments += " --source-map-basepath=" + options.SourceMapBasePath; } return(arguments); }
private static string ConstructArguments(Config config) { string arguments = " --no-color"; if (config.SourceMap) arguments += " --source-map-map-inline"; LessOptions options = new LessOptions(config); if (options.StrictMath) arguments += " --strict-math=on"; return arguments; }
private static string ConstructArguments(Config config) { string arguments = " --no-color"; if (config.SourceMap) arguments += " --source-map-map-inline"; LessOptions options = new LessOptions(config); if (options.StrictMath) arguments += " --strict-math=on"; if (options.StrictUnits) arguments += " --strict-units=on"; if (options.RelativeUrls) arguments += " --relative-urls"; if (!string.IsNullOrEmpty(options.RootPath)) arguments += $" --rootpath=\"{options.RootPath}\""; return arguments; }