You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@alex-drocks/react-snap-sitemap

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alex-drocks/react-snap-sitemap - npm Package Compare versions

Comparing version

to
3.0.0

2

index.js

@@ -1,1 +0,1 @@

// Silence is golden
// Silence is golden

@@ -7,7 +7,8 @@ {

},
"version": "0.3.0",
"version": "3.0.0",
"description": "Create a sitemap post react-snap SSR",
"keywords": [
"automatic sitemap generator",
"react-snap"
"react-snap",
"arcadian-group/react-snap-sitemap fork"
],

@@ -14,0 +15,0 @@ "main": "index.js",

@@ -13,6 +13,15 @@ # React Snap Sitemap

Add `&& react-snap-sitemap --base-url=http://example.com/` to the end of your postBuild script after you've the `react-snap` command.
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: <pre>
"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"
},</pre>
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`
If you need trailing slashes at the end of your URLs add `--add-slash=true`