Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): disable dev-server response compr…
Browse files Browse the repository at this point in the history
…ession

Compression isn't particular useful during development, also in version 13 we disable this completely due to timeouts issues which it causes.

This backports this change which also addresses another issues as described here #21720

Closes #21720
  • Loading branch information
alan-agius4 committed Sep 8, 2021
1 parent 367fce2 commit 0498768
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ export function getDevServerConfig(
} = wco;

const servePath = buildServePath(wco.buildOptions, logger);
const { styles: stylesOptimization, scripts: scriptsOptimization } = normalizeOptimization(
optimization,
);
const { styles: stylesOptimization, scripts: scriptsOptimization } =
normalizeOptimization(optimization);

const extraPlugins = [];

Expand Down Expand Up @@ -109,7 +108,7 @@ export function getDevServerConfig(
},
sockPath: posix.join(servePath, 'sockjs-node'),
stats: false,
compress: stylesOptimization.minify || scriptsOptimization,
compress: false,
watchOptions: getWatchOptions(poll),
https: getSslConfig(root, wco.buildOptions),
overlay: {
Expand Down

0 comments on commit 0498768

Please sign in to comment.