The Siget project ships with Angular’s built-in development server, powered by 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:dev-server builder. It provides fast incremental rebuilds, hot module replacement, and detailed error overlays — everything you need to iterate quickly without any extra configuration.
Starting the Server
The simplest way to start the server is to run either of the following commands from the project root:http://localhost:4200, and automatically reloads the browser whenever a source file changes. You do not need to restart the process between edits.
Serve Configuration in angular.json
Siget’s angular.json wires the serve architect target to @angular/build:dev-server and maps each named configuration to the corresponding build target:
defaultConfiguration is development, so a plain ng serve always starts in development mode. Passing --configuration production switches it to the production build target.
Common Flags
| Flag | Default | Description |
|---|---|---|
--port | 4200 | Port to listen on |
--host | localhost | Host to bind |
--open | false | Opens the browser automatically after the build succeeds |
--configuration | development | Build configuration to use (development or production) |
Examples
Development vs. Production Mode
Thedevelopment and production build configurations differ in several important ways. Siget’s angular.json defines them explicitly under the build architect target:
| Aspect | Development | Production |
|---|---|---|
| Optimization | Off | On (minification, tree-shaking) |
| Source maps | Enabled | Disabled by default |
| Output hashing | Off | All files hashed |
| License extraction | Off | On |
| Bundle size budgets | Not enforced | Enforced with warning/error thresholds |
ng serve --configuration production is useful for catching budget violations or testing the optimized bundle locally before deploying.
Once the server starts, your application is available at http://localhost:4200. The terminal will display the exact URL and confirm when the build is ready.