GithubHelp home page GithubHelp logo

sidmonta / parcel-reporter-sitemap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fgribreau/parcel-reporter-sitemap

0.0 0.0 0.0 167 KB

A parcel plugin for creating (very) basic sitemaps.

License: MIT License

JavaScript 100.00%

parcel-reporter-sitemap's Introduction

Parcel (v2) Sitemap Plugin

GitHub Workflow Status npm Slack

A parcel plugin for creating (very) basic sitemaps.

Disclaimer:

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.

Installation

npm install -D parcel-reporter-sitemap

# or with yarn

yarn add -D parcel-reporter-sitemap

Configuration

Once the packager is installed, create or update .parcelrc accordingly:

{
  "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/"

More info

Contribute

You're interested in contributing? Awesome! Fork, make change, commit and create pull request. I'll do my best to merge changes!

License

MIT License

Previous work

parcel-reporter-sitemap's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.