@foxpage/foxpage-plugin-ares
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

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

15.5 kB

Total Files

6

Last publish

Collaborators

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