
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
ngx-sitemaps
Advanced tools
Generate sitemaps from Angular prerendered routes.
Before using the CLI, make sure to build your application. Afterward, run the following CLI command to generate the sitemap:
npx ngx-sitemaps https://your-site.com
To run the script always after the build, install the package in your project
and set up a postbuild
script in your package.json
:
{
"scripts": {
"build": "ng build",
"postbuild": "ngx-sitemaps https://your-site.com"
}
}
If you already have a custom postbuild script, you can use the following code to generate the sitemap:
import { generateSitemap } from "ngx-sitemaps";
await generateSitemap("https://your-site.com");
Title | CLI usage | Direct usage | Description |
---|---|---|---|
Project | --project | project | Project name in angular.json |
FAQs
Generate sitemaps from Angular prerendered routes
The npm package ngx-sitemaps receives a total of 27 weekly downloads. As such, ngx-sitemaps popularity was classified as not popular.
We found that ngx-sitemaps demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.