@nuxtjs/sitemap
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -5,2 +5,16 @@ # Change Log | ||
# [1.1.0](https://github.com/nuxt-community/sitemap-module/compare/v1.0.0...v1.1.0) (2019-05-01) | ||
### Bug Fixes | ||
* hostname initialization ([56fdddd](https://github.com/nuxt-community/sitemap-module/commit/56fdddd)), closes [#60](https://github.com/nuxt-community/sitemap-module/issues/60) | ||
### Features | ||
* add "xslUrl" option to set a custom XSL file to style the sitemap ([de1b706](https://github.com/nuxt-community/sitemap-module/commit/de1b706)), closes [#58](https://github.com/nuxt-community/sitemap-module/issues/58) | ||
# [1.0.0](https://github.com/nuxt-community/sitemap-module/compare/v0.2.2...v1.0.0) (2019-04-15) | ||
@@ -7,0 +21,0 @@ |
@@ -12,6 +12,8 @@ const { Minimatch } = require('minimatch') | ||
const defaultPublicPath = '/_nuxt/' | ||
module.exports = function module (moduleOptions) { | ||
const defaults = { | ||
path: 'sitemap.xml', | ||
hostname: this.options.build.publicPath || undefined, | ||
hostname: this.options.build.publicPath !== defaultPublicPath ? this.options.build.publicPath : undefined, | ||
exclude: [], | ||
@@ -22,2 +24,3 @@ routes: this.options.generate.routes || [], | ||
gzip: false, | ||
xslUrl: undefined, | ||
defaults: {} | ||
@@ -169,2 +172,5 @@ } | ||
// Set XSL url | ||
sitemapConfig.xslUrl = options.xslUrl | ||
// Create promisified instance and return | ||
@@ -171,0 +177,0 @@ const sitemap = sm.createSitemap(sitemapConfig) |
{ | ||
"name": "@nuxtjs/sitemap", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Automatically generate or serve dynamic sitemap.xml for Nuxt.js projects", | ||
"keywords": [ | ||
"nuxt", | ||
"nuxtjs", | ||
"sitemap", | ||
"sitemap.xml", | ||
"seo" | ||
], | ||
"repository": "https://github.com/nuxt-community/sitemap-module", | ||
@@ -32,2 +39,3 @@ "license": "MIT", | ||
"hooks": { | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS", | ||
"pre-commit": "npm run lint", | ||
@@ -51,2 +59,4 @@ "pre-push": "npm test" | ||
"devDependencies": { | ||
"@commitlint/cli": "latest", | ||
"@commitlint/config-conventional": "latest", | ||
"codecov": "latest", | ||
@@ -53,0 +63,0 @@ "eslint": "latest", |
@@ -130,2 +130,7 @@ # Sitemap Module | ||
### `xslUrl` (optional) | ||
- Default: `undefined` | ||
The URL path of the XSL file to style the sitemap. | ||
### `defaults` (optional) | ||
@@ -132,0 +137,0 @@ - Default: `{}` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20896
200
237
0
16