Interface ResourceConfig

interface ResourceConfig {
    basePath?: string;
    isDevelopment?: boolean;
    pathMapping?: Record<string, string>;
    urlResolver?: ((path, config) => string);
}

Properties

basePath?: string

资源基础路径

isDevelopment?: boolean

是否为开发环境

pathMapping?: Record<string, string>

自定义资源路径映射

urlResolver?: ((path, config) => string)

资源URL解析器

Type declaration

    • (path, config): string
    • Parameters

      Returns string