import PackageImporter from 'node-sass-package-importer/js/lib/PackageImporter.js'Constructor Summary
| Public Constructor | ||
| public |
constructor(options: Object) |
|
Method Summary
| Public Methods | ||
| public |
Clean a node sass import url. |
|
| public |
Asynchronously resolve the path to a node-sass import url. |
|
| public |
resolveFilter(pkg: Object): Object Find the first matching key in a package.json file
and set it as value for the |
|
| public |
resolveSync(url: string): string Synchronously resolve the path to a node-sass import url. |
|
| public |
urlVariants(url: string): Array Create url variants for partial file matching (e.g. |
|
Public Constructors
Public Methods
public cleanUrl(url: string): string source
Clean a node sass import url.
Params:
| Name | Type | Attribute | Description |
| url | string | Import url from node-sass. |
public resolve(url: string): Promise source
Asynchronously resolve the path to a node-sass import url.
Params:
| Name | Type | Attribute | Description |
| url | string | Import url from node-sass. |
public resolveFilter(pkg: Object): Object source
Find the first matching key in a package.json file
and set it as value for the main field.
Params:
| Name | Type | Attribute | Description |
| pkg | Object | Contents of a package.json. |