Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): only show index and service worke…
Browse files Browse the repository at this point in the history
…r status once

Previously the `Index html generation complete` and `Service worker generation complete` where displayed multiple times when localization was enabled.
  • Loading branch information
alan-agius4 committed Feb 24, 2021
1 parent 48badb1 commit 7ef73c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/angular_devkit/build_angular/src/browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,9 @@ export function buildWebpackBrowser(

return { success: false, error: mapErrorToMessage(error) };
}

spinner.succeed('Index html generation complete.');
}

spinner.succeed('Index html generation complete.');
}

if (options.serviceWorker) {
Expand All @@ -730,9 +730,9 @@ export function buildWebpackBrowser(

return { success: false, error: mapErrorToMessage(error) };
}

spinner.succeed('Service worker generation complete.');
}

spinner.succeed('Service worker generation complete.');
}
}

Expand Down

0 comments on commit 7ef73c8

Please sign in to comment.