html-inline-css-webpack-plugin
Version:
☄️ A webpack plugin for convert external stylesheet to embedded stylesheet, aka document stylesheet
20 lines (19 loc) • 551 B
TypeScript
export interface ReplaceConfig {
position?: 'before' | 'after';
removeTarget?: boolean;
target: string;
}
export type StyleTagFactory = (params: {
style: string;
}) => string;
export declare const TAP_KEY_PREFIX = "html-inline-css-webpack-plugin";
export declare const DEFAULT_REPLACE_CONFIG: ReplaceConfig;
export interface Config {
filter?(fileName: string): boolean;
leaveCSSFile?: boolean;
replace?: ReplaceConfig;
styleTagFactory?: StyleTagFactory;
}
export interface FileCache {
[fileName: string]: string;
}