mp-lens
Version:
微信小程序分析工具 (Unused Code, Dependencies, Visualization)
20 lines (19 loc) • 555 B
TypeScript
import { ProjectStructure } from '../../analyzer/project-structure';
/**
* HtmlGenerator选项
*/
export interface HtmlGeneratorOptions {
title: string;
}
/**
* Generates a static HTML file with embedded data and pre-built UI assets.
*/
export declare class HtmlGeneratorPreact {
private structure;
private unusedFiles;
constructor(structure: ProjectStructure, reachableNodeIds: Set<string>, unusedFiles: string[]);
/**
* Generates the static HTML page.
*/
generate(options: HtmlGeneratorOptions): Promise<string>;
}