🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

umi-plugin-sitemap

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

umi-plugin-sitemap

umi plugin for setting sitemap config

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

umi-plugin-sitemap

NPM version

NPM downloads

  • umi plugin for generating sitemap.xml after building
  • for now, only support to umi@3.0.0+

Install

# or yarn
$ npm install --save-dev umi-plugin-sitemap

Usage

Configure in .umirc.js,

In this way, you should set your homepage in package.json

// .umirc.ts
import { defineConfig } from 'umi';

export default defineConfig({
  ...
  sitemap: ['your-custom-route'],
  ...
});

// package.json
{
  ...
  "homepage": "your-homepage",
  ...
}

or Configure like that

import { defineConfig } from 'umi';

export default defineConfig({
  ...
  sitemap: {
    homepage: 'your-homepage',
    dynamicRoute: ['your-custom-route']
  },
  ...
});

FAQ

If you set homepage both in config and package, umi-plugin-sitemap will use config one.

Options

参数说明类型默认值
sitemap添加自定义路由和 homepage`string[]{ homepage: string; dynamicRoute?: string[] }`

LICENSE

MIT

FAQs

Package last updated on 20 Aug 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