Skip to content

Commit 4111153

Browse files
clydindgp1130
authored andcommitted
fix(@angular/build): add console note about development server raw file size
An informational note will now be shown upon development server startup to indicate that the raw file sizes shown in the console do not reflect any of the per-request transformations that may occur within the Vite-based development server. The raw file size and the size shown within the browser may differ as a result of these development workflow based transformations. (cherry picked from commit 8e86184)
1 parent dc20948 commit 4111153

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/angular/build/src/builders/dev-server/vite-server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ export async function* serveWithVite(
241241
throw new Error('The builder requires a target.');
242242
}
243243

244+
context.logger.info(
245+
'NOTE: Raw file sizes do not reflect development server per-request transformations.',
246+
);
247+
244248
const { root = '' } = await context.getProjectMetadata(projectName);
245249
const projectRoot = join(context.workspaceRoot, root as string);
246250
const browsers = getSupportedBrowsers(projectRoot, context.logger);

0 commit comments

Comments
 (0)