You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
770 B

import { CustomGenerator } from '../types';
export declare enum StylingType {
CSS = "CSS",
SASS = "SASS",
LESS = "LESS",
PostCSS = "PostCSS"
}
export declare enum LoaderName {
CSS = "css-loader",
SASS = "sass-loader",
STYLE = "style-loader",
LESS = "less-loader",
POSTCSS = "postcss-loader"
}
export declare enum StyleRegex {
CSS = "/.css$/",
SASS = "/.(sa|sc|c)ss$/",
LESS = "/.(less|css)$/",
PostCSS = "/.css$/"
}
export interface Loader {
loader: string;
options?: {
importLoaders?: number;
sourceMap?: boolean;
plugins?: string;
};
}
export default function style(self: CustomGenerator, stylingType: string): {
ExtractUseProps: Loader[];
regExpForStyles: StyleRegex;
};