{"library":"sitemap-webpack-plugin","title":"Sitemap Webpack Plugin","description":"Webpack plugin to generate a sitemap.xml from a list of paths. Version 1.1.1 supports webpack 4 and 5 (for webpack <=3, use 0.5.x). It relies on the 'sitemap' library, supports gzipped output by default, and offers path-specific options like lastmod, priority, and changefreq. TypeScript types are included. Released under MIT license with weekly npm downloads around 6k.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install sitemap-webpack-plugin"],"cli":null},"imports":["import SitemapPlugin from 'sitemap-webpack-plugin'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nconst SitemapPlugin = require('sitemap-webpack-plugin');\n\nmodule.exports = {\n  plugins: [\n    new SitemapPlugin({\n      base: 'https://example.com',\n      paths: [\n        '/page1',\n        '/page2',\n        { path: '/page3', lastmod: '2023-01-01', priority: 0.8 },\n      ],\n      options: {\n        filename: 'sitemap.xml',\n        skipgzip: false,\n        lastmod: true,\n        priority: 0.5,\n        changefreq: 'monthly',\n      },\n    }),\n  ],\n};","lang":"javascript","description":"Configures SitemapPlugin with a base URL, an array of paths (strings or objects with path/lastmod/priority), and global options like filename and lastmod.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}