Exemplo n.º 1
0
 public Helper(IOptions <BundleGlobalOptions> globalOptions, ISassCompiler compiler, ICssMinifier minifier)
 {
     _globalOptions       = globalOptions.Value;
     _compileTransform    = new SassCompileTransform(compiler);
     _rewriteUrlTransform = new CssRewriteUrlTransform();
     _minifyTransform     = new CssMinifyTransform(minifier);
 }
Exemplo n.º 2
0
        internal SassCompilationContext(ISassCompiler compiler, string rootPath, IFileProvider fileProvider, CancellationToken token)
        {
            Compiler          = compiler;
            RootPath          = rootPath;
            FileProvider      = fileProvider ?? AbstractionFile.NullFileProvider;
            CancellationToken = token;

            FileProviderFileManager.SetCompilationContext(this);
        }
Exemplo n.º 3
0
        public SassCompileTransform(ISassCompiler compiler)
        {
            if (compiler == null)
            {
                throw new ArgumentNullException(nameof(compiler));
            }

            _compiler = compiler;
        }
Exemplo n.º 4
0
        internal SassCompilationContext(ISassCompiler compiler, string rootPath, PathString virtualPathPrefix, IFileProvider fileProvider, PathString outputPath, CancellationToken token)
        {
            Compiler          = compiler;
            RootPath          = rootPath;
            VirtualPathPrefix = virtualPathPrefix;
            FileProvider      = fileProvider ?? AbstractionFile.NullFileProvider;
            OutputPath        = outputPath;
            CancellationToken = token;

            FileProviderFileManager.SetCompilationContext(this);
        }
Exemplo n.º 5
0
 public CompileSass(ISassCompiler sassCompiler, CassetteSettings settings)
 {
     this.sassCompiler = sassCompiler;
     this.settings     = settings;
 }
 public SassTransformer(ISassCompiler sassCompiler)
 {
     _sassCompiler = sassCompiler;
 }
 public SassTransformer(ISassCompiler sassCompiler)
 {
     _sassCompiler = sassCompiler;
 }