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)
alan-agius4 authored and clydin committed May 5, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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,
},
],
};

0 comments on commit c8d2d68

Please sign in to comment.