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
  • Loading branch information
alan-agius4 authored and clydin committed May 5, 2021
1 parent 5f61556 commit 678773f
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 678773f

Please sign in to comment.