We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ngsw-config.json
ngswConfigPath
1 parent bcd6d05 commit 449c51fCopy full SHA for 449c51f
packages/schematics/angular/migrations/update-9/ngsw-config.ts
@@ -23,13 +23,13 @@ export function updateNGSWConfig(): Rule {
23
for (const options of getAllOptions(target)) {
24
const ngswConfigPath = findPropertyInAstObject(options, 'ngswConfigPath');
25
if (!ngswConfigPath || ngswConfigPath.kind !== 'string') {
26
- logger.warn(`Cannot find file: ${ngswConfigPath}`);
27
continue;
28
}
29
30
const path = ngswConfigPath.value;
31
const ngswConfigAst = readJsonFileAsAstObject(tree, path);
32
if (!ngswConfigAst || ngswConfigAst.kind !== 'object') {
+ logger.warn(`Cannot find file: ${ngswConfigPath}`);
33
34
35
0 commit comments