Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sitemap-rspack-plugin

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemap-rspack-plugin - npm Package Versions

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
      }
    })
  ]
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc