Home Reference Source Test Repository
public class | source

GlobImporter

Import files using glob patterns.

Test:

Constructor Summary

Public Constructor
public

constructor(options: Object)

Member Summary

Public Members
public

Method Summary

Public Methods
public

Asynchronously resolve filtered contents from glob files with the given url.

public

Asynchronously resolve node-sass import url glob paths.

public

Synchronously resolve node-sass import url glob paths.

public

Synchronously resolve filtered contents from glob files with the given url.

Public Constructors

public constructor(options: Object) source

Params:

NameTypeAttributeDescription
options Object

Configuration options.

Public Members

public options: Object source

Public Methods

public resolve(url: string): Promise source

Asynchronously resolve filtered contents from glob files with the given url.

Params:

NameTypeAttributeDescription
url string

Import url from node-sass.

Return:

Promise

Promise for a contents object.

Test:

public resolveFilePaths(url: string): Promise source

Asynchronously resolve node-sass import url glob paths.

Params:

NameTypeAttributeDescription
url string

Import url from node-sass.

Return:

Promise

Promise for a file paths array.

Test:

public resolveFilePathsSync(url: string): Array source

Synchronously resolve node-sass import url glob paths.

Params:

NameTypeAttributeDescription
url string

Import url from node-sass.

Return:

Array

File paths array.

Test:

public resolveSync(url: string): Object | null source

Synchronously resolve filtered contents from glob files with the given url.

Params:

NameTypeAttributeDescription
url string

Import url from node-sass.

Return:

Object | null

Contents object or null.

Test: