Skip to content

Commit 0fe0da3

Browse files
alan-agius4filipesilva
authored andcommitted
fix(@angular-devkit/build-angular): disable CSS calc optimizations
Disable `calc` optimizations due to several issues. Closes #16910 closes #16875 and closes #17890
1 parent 5e7e48b commit 0fe0da3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/plugins/optimize-css-webpack-plugin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ export class OptimizeCssWebpackPlugin {
7878

7979
const cssNanoOptions: cssNano.CssNanoOptions = {
8080
preset: ['default', {
81-
// Disable SVG optimization, as this can cause optimizations which are not compatible in all browsers.
81+
// Disable SVG optimizations, as this can cause optimizations which are not compatible in all browsers.
8282
svgo: false,
83+
// Disable `calc` optimizations, due to several issues. #16910, #16875, #17890
84+
calc: false,
8385
}],
8486
};
8587

0 commit comments

Comments
 (0)