Siget uses theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/kevinrodriguezmorales/siget/llms.txt
Use this file to discover all available pages before exploring further.
@angular/build:application builder — the modern Vite-based build pipeline that ships with Angular 21, replacing the legacy Webpack-based builder. It provides faster incremental builds, first-class ESM output, and tighter bundle budget enforcement out of the box.
Running the Build
Use either the Angular CLI directly or the npm script aliases defined inpackage.json:
production configuration and write all output to the dist/ directory.
Development Build (Watch Mode)
For day-to-day development you can keep a continuous build running in the background. Thewatch script disables optimization, keeps source maps, and rebuilds automatically whenever a source file changes:
dist/ without spinning up the dev server.
Build Configurations
Theangular.json configurations block defines two named configurations that override the builder defaults.
Production
outputHashing: "all" appends a content hash to every emitted asset filename (JS chunks, CSS, fonts, images). This enables aggressive long-term browser caching — unchanged assets keep the same hash, so users never re-download files that have not changed.
Development
Bundle Budgets
Bundle budgets are enforced only in theproduction configuration. The CLI emits a warning or fails the build when a threshold is crossed.
| Budget type | Warning threshold | Error threshold |
|---|---|---|
initial | 500 kB | 1 MB |
anyComponentStyle | 4 kB | 8 kB |
initial budget covers everything loaded on the first page visit — the main bundle plus any eagerly imported chunks. The anyComponentStyle budget applies per-component to inline styles compiled from SCSS.
npm Scripts Reference
Both scripts are defined inpackage.json and map directly to Angular CLI commands:
| Script | Command | Purpose |
|---|---|---|
npm run build | ng build | Full production build, outputs to dist/ |
npm run watch | ng build --watch --configuration development | Continuous development build with source maps |
Deploying the dist/ Output
ng build writes a self-contained static site to dist/siget/browser/. Every file is standalone — you can host the contents on any static file host.
Netlify
Set the publish directory to
dist/siget/browser and the build command to npm run build. Netlify’s _redirects file or a netlify.toml rewrite rule handles SPA routing automatically.Vercel
Import the repository and set the output directory to
dist/siget/browser. Add a vercel.json rewrite to serve index.html for all unmatched routes.GitHub Pages
Use the
angular-cli-ghpages package or a GitHub Actions workflow to push dist/siget/browser to the gh-pages branch.Nginx SPA Routing
When self-hosting on nginx, all unknown paths must fall back toindex.html so Angular’s client-side router can handle them:
outputHashing: "all" is enabled in production, hashed asset filenames are unique per build, making it safe to set a one-year Cache-Control header.