extension-develop
Version:
The develop step of Extension.js
19 lines (18 loc) • 931 B
TypeScript
import { type FilepathList } from '../../../webpack-types';
export interface ParsedHtmlAsset {
css?: string[];
js?: string[];
static?: string[];
}
export declare function getAssetsFromHtml(htmlFilePath: string | undefined, htmlContent?: string, publicPath?: string): ParsedHtmlAsset;
export declare function getHtmlPageDeclaredAssetPath(filepathList: FilepathList, filePath: string, extension: string): string;
export declare function getExtname(filePath: string): string;
export declare function getFilePath(filePath: string, extension: string, isPublic: boolean): string;
export declare function isFromIncludeList(filePath: string, includeList?: FilepathList): boolean;
export declare function isUrl(src: string): boolean;
export declare function cleanAssetUrl(url: string): {
cleanPath: string;
hash: string;
search: string;
};
export declare function getBaseHref(htmlDocument: any): string | undefined;