@foxpage/foxpage-plugin-ares-packages
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@foxpage/foxpage-plugin-ares

The plugin for foxpage to get resource list

Usage

Import this plugin in foxpage-server env config file

export default {
  ...
    "plugins": ["@foxpage/foxpage-plugin-ares"],
  ...
}

Methods

resourceList(options:ResourceListOptions)

Search resource list from the special server with resource name

interface ResourceListOptions {
  type: string; // default is 'ares', if not , then response empty array direct
  name?: string; // search resource name
  resourceConfig?: any; // the resource server address config, include host and path
  groupConfig?: any; // the resource group's manifest file path config
  appConfig?: any; // the resource group's application config
}

Package Sidebar

Install

npm i @foxpage/foxpage-plugin-ares-packages

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

1.66 kB

Total Files

2

Last publish

Collaborators

  • shumingzhang
  • milkrong
  • songzinpm
  • yhdeng
  • xdrxdr
  • wangyilong