• 参数

    • fileExtensions: string[]

      File extensions that this loader can handle.

    • 可选type: string

      Type identifier. If this resource needs to support identification without extension, or if one extension corresponds to multiple resource types, specifying the type parameter is a best practice.

    • 可选hotReloadable: boolean

      Whether it supports hot reloading.

    返回 (constructor: Function) => void

    Register a resource loader.

    注册一种资源装载器。