-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update & expand README documentation, standardize configuration optio…
…ns (#28) * Update & expand README documentation * Standardize on lowercase option names; allow top-level lastmod string * Additional tweaks to README * Add second path example for object paths
- Loading branch information
1 parent
136ac8d
commit 41d8620
Showing
8 changed files
with
102 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default "Sitemap with options set globally and lastmod as a date string"; |
1 change: 1 addition & 0 deletions
1
test/success-cases/global-opts-lastmod/expected-output/sitemap.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://mysite.com/</loc><lastmod>2019-06-01T00:00:00.000Z</lastmod><changefreq>monthly</changefreq><priority>0.4</priority></url><url><loc>https://mysite.com/about</loc><lastmod>2019-06-01T00:00:00.000Z</lastmod><changefreq>monthly</changefreq><priority>0.4</priority></url></urlset> |
Binary file added
BIN
+264 Bytes
test/success-cases/global-opts-lastmod/expected-output/sitemap.xml.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import SitemapPlugin from "../../../src/"; | ||
|
||
export default { | ||
entry: () => [], | ||
output: { | ||
filename: "index.js", | ||
path: `${__dirname}/actual-output`, | ||
libraryTarget: "umd" | ||
}, | ||
|
||
plugins: [ | ||
new SitemapPlugin("https://mysite.com", ["/", "/about"], { | ||
fileName: "sitemap.xml", | ||
lastMod: "2019-06-01", | ||
changeFreq: "monthly", | ||
priority: "0.4" | ||
}) | ||
] | ||
}; |