
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
vuepress-plugin-forked-sitemap
Advanced tools
Sitemap generator plugin for vuepress.
Yarn
yarn add vuepress-plugin-sitemap
NPM
npm install vuepress-plugin-sitemap
in v2.0.0, dependencies except
sitemapare moved to peerDependencies so we need to installesmmodule manually (chalkandcommanderare already installed byvuepress) when we use this plugin with cli method.
// .vuepress/config.js
module.exports = {
plugins: {
'sitemap': {
hostname: 'https://pake.web.id'
},
}
}
There's no plugin supported with Vuepress v0.x so we need to run it after the build process manually (or with npm postbuild script).
Manual
./node_modules/.bin/vuepress -d "dist"
./node_modules/.bin/vuepress-sitemap -H "https://pake.web.id" -d "dist"
NPM Script
{
scripts: {
build: "vuepress build docs -d dist",
postbuild: "vuepress-sitemap -H https://pake.web.id -d dist"
}
}
hostname:
type: string
required: true
default: null
description: website root url
example: https://pake.web.id
outFile:
type: string
required: false
default: sitemap.xml
description: sitemap file name
example: sitemap.txt
urls:
type: array
required: false
default: [],
description: custom urls to append
example: [
{ url: '/place', changefreq: 'montly'}
]
exclude:
type: array
required: false
default: [],
description: pages path to exclude
example: ['/404.html']
Note:
Other options of sitemap can be used, all options passed except urls, hostname, cacheTime, xslUrl, xmlNs and outFile will be passed to url option
FAQs
Sitemap generator plugin for vuepress
The npm package vuepress-plugin-forked-sitemap receives a total of 0 weekly downloads. As such, vuepress-plugin-forked-sitemap popularity was classified as not popular.
We found that vuepress-plugin-forked-sitemap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.