Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Snap Sitemap

A companion package for react-snap.

This package allows you to generate a sitemap.xml based off the created directories and files produced by react-snap.

Installation

npm install -D @alex-drocks/react-snap-sitemap

Usage

Add & react-snap-sitemap --base-url=http://example.com/ to the end of your postBuild script after you've run the react-snap command. For example:

"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"postbuild": "react-snap & react-snap-sitemap --base-url=https://finance-d.com/ --add-slash=true --change-frequency=daily"
},

To blacklist specific urls, add them with --black-list={url},{url2},...

You can also add --change-frequency=always|daily|weekly|monthly|yearly|never.

If you need trailing slashes at the end of your URLs add --add-slash=true

Change out directory: --out-dir={directory}. Default: build.

About

Create a sitemap post react-snap SSR

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages