A parcel plugin for creating (very) basic sitemaps.
npm install parcel-reporter-sitemap!GitHub Workflow Status !npm 
A parcel plugin for creating (very) basic sitemaps.
This plugin will not create a fully featured sitemap, but the most basic one, that is still valid. Parcel makes it generally very easy for you to create a sitemap manually, as html files keep their names while beeing processed. So if you want to achieve perfect SEO optimization you should not use this plugin but create a sitemap 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.
``bash
npm install -D parcel-reporter-sitemap
yarn add -D parcel-reporter-sitemap
`
Once the packager is installed, create or update .parcelrc accordingly:
`json`
{
"extends": ["@parcel/config-default"],
"reporters": ["parcel-reporter-sitemap"]
}
Sitemap reporter configuration is done through environment variables.
- PARCEL_SITEMAP_SITE_URL: location where your site will be hosted
If not specified parcel-reporter-sitemap will fallback to Parcel "public-url".
```
PARCEL_SITEMAP_SITE_URL="https://my.website.tld/"
- https://github.com/parcel-bundler/parcel#parcelrcreporters
- https://github.com/parcel-bundler/parcel#reporters
You're interested in contributing? Awesome! Fork, make change, commit and create pull request. I'll do my best to merge changes!
MIT License
- https://github.com/tom-julux/parcel-plugin-sitemap