scss-bundle
Version:
Bundling SCSS files to one bundled file.
35 lines (34 loc) • 766 B
TypeScript
export interface ScssBundleConfig {
bundlerOptions: BundlerOptions;
}
export interface BundlerOptions {
project?: string;
entryFile?: string;
outFile?: string;
rootDir?: string;
ignoreImports?: string[];
includePaths?: string[];
dedupeGlobs?: string[];
watch?: boolean;
logLevel?: string;
}
export interface FileRegistry {
[id: string]: string | undefined;
}
export interface ImportData {
importString: string;
tilde: boolean;
path: string;
fullPath: string;
found: boolean;
ignored?: boolean;
}
export interface BundleResult {
imports?: BundleResult[];
tilde?: boolean;
deduped?: boolean;
filePath: string;
bundledContent?: string;
found: boolean;
ignored?: boolean;
}