UNPKG

1.16 kBTypeScriptView Raw
1import { BuildContext, ChangedFile } from './util/interfaces';
2export declare function sass(context: BuildContext, configFile?: string): Promise<string>;
3export declare function sassUpdate(changedFiles: ChangedFile[], context: BuildContext): Promise<string>;
4export declare function sassWorker(context: BuildContext, configFile: string): Promise<string>;
5export declare function getSassConfig(context: BuildContext, configFile: string): SassConfig;
6export interface SassConfig {
7 outputFilename?: string;
8 outFile?: string;
9 file?: string;
10 data?: string;
11 includePaths?: string[];
12 excludeModules?: string[];
13 includeFiles?: RegExp[];
14 excludeFiles?: RegExp[];
15 directoryMaps?: {
16 [key: string]: string;
17 };
18 sortComponentPathsFn?: (a: any, b: any) => number;
19 sortComponentFilesFn?: (a: any, b: any) => number;
20 variableSassFiles?: string[];
21 autoprefixer?: any;
22 sourceMap?: string;
23 omitSourceMapUrl?: boolean;
24 sourceMapContents?: boolean;
25 postCssPlugins?: any[];
26}
27export interface SassMap {
28 version: number;
29 file: string;
30 sources: string[];
31 mappings: string;
32 names: any[];
33}