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

0.3.13 • Public • Published

@foxpage/foxpage-plugin-unpkg

The plugin for foxpage to get resource list

Usage

Import this plugin in foxpage-server env config file

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

Methods

resourceList(options:ResourceListOptions)

Search resource list from the special server with resource name

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

Package Sidebar

Install

npm i @foxpage/foxpage-plugin-unpkg

Weekly Downloads

4

Version

0.3.13

License

MIT

Unpacked Size

18.1 kB

Total Files

6

Last publish

Collaborators

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