New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@antdp/config

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antdp/config

路由配置

1.3.7
Source
npm
Version published
Weekly downloads
5
-89.13%
Maintainers
1
Weekly downloads
 
Created
Source

@antdp/config

将 umi 配置包裹一层

Installation

npm i @antdp/config --save-dev

Basic Usage

import config from '@antdp/config';
import router from './router.json';
import proxy from './proxy';

export default config(router, {
  proxy,
});

Interface

import { IConfig, IRoute } from 'umi';

export interface Options extends Omit<IConfig, 'routes'> {
  routes: IRoute;
}

export interface Config {
  (routes?: IRoute, optiosn?: Options): IConfig;
}

declare var config: Config;
export default config;

Define

  • ANTD_IS_TABS 是否显示 Tab 选项卡,默认显示 true
  • ANTD_IS_IFRAME_RENDER 是否使用 iframe 展示内容

favicon

export default {
  // 配置 favicon 地址(href 属性)
  favicon: '/assets/favicon.ico', 
}

Keywords

config

FAQs

Package last updated on 04 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts