public LessCompileTransform(ILessCompiler compiler) { if (compiler == null) { throw new ArgumentNullException(nameof(compiler)); } _compiler = compiler; }
public string GetUserBootstrapCss(ILessCompiler lesak, bool minify) { if (!File.Exists(UserVariablesLessFile)) { var defaultvars = Path.Combine(BasePath, @"less\variables.less"); var content = FileExts.GetContent(defaultvars); FileExts.SetContent(UserVariablesLessFile, content); } var lessfile = Path.Combine(BasePath, string.Format(@"userdata\bootstrap_{0}.less", UserId)); if (!File.Exists(lessfile)) { var defaultboot = Path.Combine(BasePath, @"less\bootstrap.less"); var content = FileExts.GetContent(defaultboot); var updatedBoot = content.Replace("less/variables.less", string.Format("userdata/variables_{0}.less", UserId)); FileExts.SetContent(lessfile, updatedBoot); } return lesak.GenerateCss(lessfile, minify); }
public LessTransformer(ILessCompiler compiler) { _compiler = compiler; }
public Helper(IOptions <BundleGlobalOptions> globalOptions, ILessCompiler compiler, ICssMinifier minifier) { _globalOptions = globalOptions.Value; _compileTransform = new LessCompileTransform(compiler); _minifyTransform = new CssMinifyTransform(minifier); }
public LessTransformer(ILessCompiler compiler, IPathResolver resolver) { _compiler = compiler; _resolver = (AssetPathResolver) resolver; }
public CompileLess(ILessCompiler lessCompiler, CassetteSettings settings) { this.lessCompiler = lessCompiler; this.settings = settings; }