Angular build configurations are named overrides defined insideDocumentation 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.json that let you swap groups of build options with a single --configuration flag. Siget ships with two configurations — production and development — and defaults to production so that a plain ng build always produces an optimised, deployment-ready bundle.
Configurations in angular.json
The full configurations block for the build architect target reads:
The
defaultConfiguration is set to "production", which means ng build
(and npm run build) always runs a fully optimised production build unless
you explicitly pass a different --configuration flag.Switching Configurations
Pass the--configuration flag to the Angular CLI to select a named configuration explicitly:
serve architect target also maps each configuration name to its corresponding build target:
ng serve defaults to development, giving you source maps and unminified output while the dev server is running.
Environment-Specific Settings
The table below summarises how each option differs between the two built-in configurations. Settings marked default are implied by the builder when no explicit value is provided in the configuration block.| Setting | development | production |
|---|---|---|
optimization | false | true (default) |
sourceMap | true | false (default) |
extractLicenses | false | true (default) |
outputHashing | none (default) | all |
optimization— Enables tree-shaking, minification, and dead-code elimination for the final bundle.sourceMap— Emits.mapfiles so browser DevTools can show original TypeScript source in stack traces and the debugger.extractLicenses— Writes a3rdpartylicenses.txtfile todist/listing open-source licence texts for all bundled dependencies.outputHashing— Appends a content-based hash to emitted filenames. Setting this toallin production enables permanent browser caching for every asset.
Assets Configuration
Thepublic/ directory at the repository root is configured as the assets source:
public/ — favicons, robots.txt, static images, manifest.json, and any other static files — is copied verbatim into the root of dist/siget/browser/ without transformation. No import is required; these files are always available at the root URL of the deployed application.
Global Styles
src/styles.scss is the single global stylesheet entry point:
Inline Style Language
SCSS is configured as the default inline style language for all generated components:styles metadata property — rather than in an external .scss file — are also processed through the SCSS compiler. It also drives the Angular CLI schematic default, so ng generate component produces .scss files automatically: