Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a431ac3

Browse files
alan-agius4filipesilva
authored andcommittedJun 10, 2020
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 a239725 commit a431ac3

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

+3-1
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)
Please sign in to comment.