How to use umi-plugin-ui - 2 common examples

To help you get started, we’ve selected a few umi-plugin-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github umijs / umi / packages / umi-plugin-react / src / ui.ts View on Github external
function getConfig(lang) {
    const { userConfig } = api.service;
    const { plugins } = userConfig.getConfig({ force: true });
    const pluginConfig = getPluginConfig(plugins, 'umi-plugin-react');
    return formatConfigs(configs, {
      lang,
      groupMap,
    }).map(p => {
      const [haveKey, value] = useConfigKey(pluginConfig, p.name);
      if (haveKey) {
        p.value = value;
      }
      return p;
    });
  }
github umijs / umi / packages / umi-plugin-react / src / ui.ts View on Github external
}).map(p => {
      const [haveKey, value] = useConfigKey(pluginConfig, p.name);
      if (haveKey) {
        p.value = value;
      }
      return p;
    });
  }

umi-plugin-ui

MIT
Latest version published 4 years ago

Package Health Score

66 / 100
Full package analysis

Similar packages