latest--schema
shared| Type | object |
|---|---|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/angular-json/_shared/latest--schema.json |
| Parent schema | angular-json |
Application builder target options
Properties
The full path for the TypeScript configuration file, relative to the current workspace.
Define the assets to be copied to the output directory. These assets are copied as-is without any further processing or hashing.
[]
The full path for the browser entry point to the application, relative to the current workspace.
The full path for the server entry point to the application, relative to the current workspace.
A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.
[]
Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations.
Security features to protect against XSS and other common attacks
2 nested properties
A list of hostnames that are allowed to access the server-side application. For more information, see https://angular.dev/best-practices/security#preventing-server-side-request-forgery-ssrf.
Enables automatic generation of a hash-based Strict Content Security Policy (https://web.dev/articles/strict-csp#choose-hash) based on scripts in index.html. Will default to true once we are out of experimental/preview phases.
Global scripts to be included in the build.
[]
Global styles to be included in the build.
[]
The stylesheet language to use for the application's inline component styles.
Options to pass to style preprocessors.
2 nested properties
Paths to include. Paths will be resolved to workspace root.
[]
Options to pass to the sass preprocessor.
3 nested properties
A set of deprecations to treat as fatal. If a deprecation warning of any provided type is encountered during compilation, the compiler will error instead. If a Version is provided, then all deprecations that were active in that compiler version will be treated as fatal.
A set of active deprecations to ignore. If a deprecation warning of any provided type is encountered during compilation, the compiler will ignore it instead.
A set of future deprecations to opt into early. Future deprecations passed here will be treated as active by the compiler, emitting warnings as necessary.
Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime. Note: @foo/bar marks all paths within the @foo/bar package as external, including sub-paths like @foo/bar/baz.
[]
Automatically clear the terminal screen during rebuilds.
Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration.
Defines the type of loader to use with a specified file extension when used with a JavaScript import. text inlines the content as a string; binary inlines the content as a Uint8Array; file emits the file and provides the runtime location of the file; dataurl inlines the content as a data URL with best guess of MIME type; base64 inlines the content as a Base64-encoded string; empty considers the content to be empty and not include it in bundles.
Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced.
Custom package resolution conditions used to resolve conditional exports/imports. Defaults to ['module', 'development'/'production']. The following special conditions are always present if the requirements are satisfied: 'default', 'import', 'require', 'browser', 'node'.
Replace compilation source files with other compilation source files in the build.
[]
Specify the output path relative to workspace root.
Build using Ahead of Time compilation.
Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.
Base url for the application being built.
Adds more details to output logging.
Log progress to the console while building.
How to handle missing translations for i18n.
How to handle duplicate translations for i18n.
Translate the bundles in one or more locales.
Run build when files change.
Define the output filename cache-busting hashing mode.
none: No hashing.all: Hash for all output bundles.media: Hash for all output media (e.g., images, fonts, etc. that are referenced in CSS files).bundles: Hash for output of lazy and main bundles.
Enable and define the file watching poll time period in milliseconds.
Delete the output path before building.
Do not use the real path when resolving modules. If unset then will default to true if NodeJS option --preserve-symlinks is set.
Extract all licenses in a separate file.
Use file name for lazy loaded chunks.
Enables the use of subresource integrity validation.
Generates a service worker configuration.
Configures the generation of the application's HTML index.
Generates a 'stats.json' file which can be analyzed with https://esbuild.github.io/analyze/.
Budget thresholds to ensure parts of your application stay within boundaries which you set.
[]
TypeScript configuration for Web Worker modules.
Define the crossorigin attribute setting of elements that provide CORS support.
A list of CommonJS or AMD packages that are allowed to be used without a build time warning. Use '*' to allow all.
[]
Prerender (SSG) pages of your application during build time.
Server side render (SSR) pages of your application during runtime.
Generates an application shell during build time.
Defines the type of build output artifact. 'static': Generates a static site build artifact for deployment on any static hosting service. 'server': Generates a server application build artifact, required for applications using hybrid rendering or APIs.
Definitions
The type of budget.
The name of the bundle.
The baseline size for comparison.
The maximum threshold for warning relative to the baseline.
The maximum threshold for error relative to the baseline.
The minimum threshold for warning relative to the baseline.
The minimum threshold for error relative to the baseline.
The threshold for warning relative to the baseline (min & max).
The threshold for error relative to the baseline (min & max).