UNPKG

utquidem

Version:

The meta-framework suite designed from scratch for frontend-focused modern web development.

23 lines (15 loc) 350 B
--- sidebar_position: 2 --- # isFileExit 判断文件是否存在。 该方法可直接在 context 上获取。 其类型定义为: ```ts export interface IPluginContext { isFileExit: (fileName: string) => Promise<boolean>; ... } ``` ## fileName 需要判断的文件名或者文件路径,基于创建的项目的相对路径即可。