Socket
Socket
Sign inDemoInstall

sitemap-webpack-plugin

Package Overview
Dependencies
18
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

1.1.1

Diff

Changelog

Source

1.1.1

  • Fix for webpack 4 pre-4.40 not having compilation.emitAsset

1.1

  • Plugin source is now TypeScript and type declaration files are included when installed from npm

1.0

  • First stable release! :tada:
  • Plugin now accepts a single options object to match the webpack convention.
  • Added schema validation for plugin configuration.
  • Dropped support for deprecated camel-cased option names. "changefreq", "filename", "lastmod", and "skipgzip" must now be lowercase.
  • To upgrade from 0.x: 1) change the plugin arguments to a single object as detailed below, and 2) downcase any camel-cased option names as mentioned in the previous bullet.
// Before:
{
  // snip
  plugins: [
    new SitemapPlugin(
      'https://mysite.com',
      [
        {
          path: '/foo/',
          lastMod: '2015-01-04',
          priority: '0.8',
          changeFreq: 'daily'
        },
        {
          path: '/bar/',
        }
      ],
      {
        fileName: 'map.xml',
        lastMod: true,
        changeFreq: 'monthly',
        priority: '0.4'
      }
    )
  ]
}

// After:
{
  // snip
  plugins: [
    new SitemapPlugin({
      base: 'https://mysite.com',
      paths: [
        {
          path: '/foo/',
          lastmod: '2015-01-04',
          priority: 0.8,
          changefreq: 'daily'
        },
        {
          path: '/bar/',
        }
      ],
      options: {
        filename: 'map.xml',
        lastmod: true,
        changefreq: 'monthly',
        priority: 0.4
      }
    })
  ]
}
schneidmaster
published 1.1.0 •

schneidmaster
published 1.1.0-beta.1 •

schneidmaster
published 1.1.0-beta.0 •

schneidmaster
published 1.0.0 •

schneidmaster
published 0.9.0 •

Changelog

Source

0.9.0

  • Use new API on webpack 5 to remove deprecation warning.
schneidmaster
published 0.8.1 •

Changelog

Source

0.8.1

  • Use native new Date().toISOString() to generate dates, rather than a more complicated custom date function. This prevents an error in certain locales.
schneidmaster
published 0.8.0 •

Changelog

Source

0.8.0

  • If more than 50,000 paths are provided, automatically split up into multiple sitemap files linked by a sitemap index
schneidmaster
published 0.7.1 •

Changelog

Source

0.7.1

  • Updated and expanded README documentation
  • Standardize on non-camel-cased configuration values for consistency with underlying sitemap package (camel-cased values are still supported for backwards compatibility)
  • Allow providing a top-level date string for lastmod (if a boolean true is provided, the current date will still be used for backwards compatibility)
schneidmaster
published 0.7.0 •

Changelog

Source

0.7.0

  • Switched to sitemap package for generating sitemaps under the hood, which provides more configuration options
23Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc