foxpage server unpkg

Usage no npm install needed!

<script type="module">
  import foxpageFoxpagePluginUnpkg from 'https://cdn.skypack.dev/@foxpage/foxpage-plugin-unpkg';



The plugin for foxpage to get resource list


Import this plugin in foxpage-server env config file

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



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