fix(angular): make path optional for customWebpackConfig in webpack browser executor (#5728)

This commit is contained in:
Leosvel Pérez Espinosa 2021-05-20 16:01:39 +01:00 committed by GitHub
parent 313c376f55
commit c71137f34c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -369,8 +369,7 @@
"type": "string"
}
},
"additionalProperties": false,
"required": ["path"]
"additionalProperties": false
}
},
"additionalProperties": false,

View File

@ -34,7 +34,7 @@ function buildApp(
const { customWebpackConfig, ...delegateOptions } = options;
// If there is a path to custom webpack config
// Invoke our own support for custom webpack config
if (customWebpackConfig) {
if (customWebpackConfig && customWebpackConfig.path) {
const pathToWebpackConfig = joinPathFragments(
context.workspaceRoot,
customWebpackConfig.path