route 获取本地文件路径(Node.js)
route
类型: MethodDeclaration
定义位置: loader.ts
描述
获取本地文件路径(Node.js)
参数 relativePath
: 相对路径
返回值:绝对路径
参数
参数名 | 类型 | 描述 | 默认值 |
---|---|---|---|
relativePath | string | - | - |
返回值
类型: string
绝对路径
源代码
位置: 第 186 行
public route(relativePath: string): string {
return require('path').resolve(__dirname, relativePath)
}
文档生成时间:2025/7/7 12:07:06