parcel-plugin-sitemap-exclude

> ⚠ This package is deprecated as its functionality has been merged into [parcel-plugin-sitemap@2.0.0](https://www.npmjs.com/package/parcel-plugin-sitemap)!

The exclude functionality has been merged upstream to parcel-plugin-sitemap@2.0.0 - please use that package instead.
Last updated 2 years ago by jonaskuske .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install parcel-plugin-sitemap-exclude 
SYNC missed versions from official npm registry.

[Deprecated] Parcel Sitemap Plugin (with exclude option)

⚠ This package is deprecated as its functionality has been merged into parcel-plugin-sitemap@2.0.0!

Fork of parcel-plugin-sitemap, a plugin for creating (very) basic sitemaps.

Added the functionality to exclude HTML files from being added to the sitemap by specifying globs in the respective package.json field.
The glob(s) will be negated and passed to fast-glob under the hood.

"sitemap": {
    "siteURL": "https://www.example.org/",
    "exclude": "static/**/*"
}

or an Array of globs:

"sitemap": {
    "siteURL": "https://www.example.org/",
    "exclude": [
        "static/**/*",
        "exclude.html"
    ]
}

Disclaimer:

This plugin will not create a fully featured sitemap, but the most basic one, that is still valid. Parcel makes it easy for you to create a sitemap manually, as html files keep their names while beeing processed. So if you want to achive perfect SEO optimization you should not use this plugin but create a sidemap manually.

However, if you just want to make sure all pages are listed so that search engines can crawl them, this plugin has you covered.

Installation

yarn add parcel-plugin-sitemap-exclude

or

npm install parcel-plugin-sitemap-exclude

Usage

Add the following snippet to your package.json file and replace "https://www.example.org/" with the location where your site will be hosted:

"sitemap": {
    "siteURL": "https://www.example.org/"
}

License

MIT License

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1 [deprecated]           ...           2 years ago
  • 1.0.0 [deprecated]           ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |