Skip to content

Commit

Permalink
refactor(@angular-devkit/build-angular): disable SW and index generat…
Browse files Browse the repository at this point in the history
…ion during i18n extraction

This commit disables index and service worker generation when using the i18n extraction together with the esbuild builders.

(cherry picked from commit 479b67f)
  • Loading branch information
alan-agius4 committed Jan 25, 2024
1 parent 6815f13 commit 2e75202
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ export async function extractMessages(
builderName,
)) as unknown as ApplicationBuilderInternalOptions;
buildOptions.optimization = false;
buildOptions.sourceMap = { scripts: true, vendor: true };
buildOptions.sourceMap = { scripts: true, vendor: true, styles: false };
buildOptions.localize = false;
buildOptions.budgets = undefined;
buildOptions.index = false;
buildOptions.serviceWorker = false;

let build;
if (builderName === '@angular-devkit/build-angular:application') {
Expand Down

0 comments on commit 2e75202

Please sign in to comment.