Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
fix(@nguniversal/builders): disable bundle budgets when using the dev…
Browse files Browse the repository at this point in the history
…-server

With this change we disable the bundle budgets when using the dev-server as extra JavaScript for live-reloading will be added which could cause budgets to fail.

Closes: #2959
  • Loading branch information
alan-agius4 committed Jan 9, 2023
1 parent ed0e637 commit 98d7837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/builders/src/ssr-dev-server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export function execute(
serviceWorker: false,
watch: true,
progress: options.progress,
// Disable bundle budgets are these are not meant to be used with a dev-server as this will add extra JavaScript for live-reloading.
budgets: [],
});

const serverTargetRun = context.scheduleTarget(serverTarget, {
Expand Down

0 comments on commit 98d7837

Please sign in to comment.