Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): disable inline svg optimizations
Browse files Browse the repository at this point in the history
SVGO can cause optimizations which are not compatible in all browsers.

FIxes: #17564
  • Loading branch information
alan-agius4 authored and mgechev committed Apr 29, 2020
1 parent f1119ff commit 3f620d5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export class OptimizeCssWebpackPlugin {
}

const cssNanoOptions: cssNano.CssNanoOptions = {
preset: 'default',
preset: ['default', {
// Disable SVG optimization, as this can cause optimizations which are not compatible in all browsers.
svgo: false,
}],
};

const postCssOptions: ProcessOptions = {
Expand Down

0 comments on commit 3f620d5

Please sign in to comment.