Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function executePostBundleSteps(
const prerenderedRoutes: string[] = [];

const {
baseHref = '/',
baseHref,
serviceWorker,
indexHtmlOptions,
optimizationOptions,
Expand Down
9 changes: 7 additions & 2 deletions packages/angular/build/src/builders/application/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,18 @@ export async function normalizeOptions(

// Initial options to keep
const {
/**
* Note: These default values should match those in schema.json.
* The reason these defaults are defined here is that, in certain internal builders,
* they are either not set or the options are provided.
*/
baseHref = '/',
inlineStyleLanguage = 'css',
allowedCommonJsDependencies,
aot,
baseHref,
crossOrigin,
externalDependencies,
extractLicenses,
inlineStyleLanguage = 'css',
outExtension,
serviceWorker,
poll,
Expand Down
3 changes: 2 additions & 1 deletion packages/angular/build/src/builders/application/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@
},
"baseHref": {
"type": "string",
"description": "Base url for the application being built."
"description": "Specifies the base URL for the application, used to resolve all relative URLs within the app.",
"default": "/"
},
"verbose": {
"type": "boolean",
Expand Down
Loading