Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): disable CSS declaration sorting o…
Browse files Browse the repository at this point in the history
…ptimizations

CSS declaration orders matters in some cases. This optimization is currently causing broken CSS output.

Closes #20693

(cherry picked from commit 678773f)
  • Loading branch information
alan-agius4 authored and clydin committed May 5, 2021
1 parent 27fbc57 commit c8d2d68
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ export class OptimizeCssWebpackPlugin {
svgo: false,
// Disable `calc` optimizations, due to several issues. #16910, #16875, #17890
calc: false,
// Disable CSS rules sorted due to several issues #20693, https://github.com/ionic-team/ionic-framework/issues/23266 and https://github.com/cssnano/cssnano/issues/1054
cssDeclarationSorter: false,
},
],
};
Expand Down

0 comments on commit c8d2d68

Please sign in to comment.