Skip to content

Commit 3f620d5

Browse files
alan-agius4mgechev
authored andcommittedApr 29, 2020
fix(@angular-devkit/build-angular): disable inline svg optimizations
SVGO can cause optimizations which are not compatible in all browsers. FIxes: #17564
1 parent f1119ff commit 3f620d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎packages/angular_devkit/build_angular/src/angular-cli-files/plugins/optimize-css-webpack-plugin.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ export class OptimizeCssWebpackPlugin {
7777
}
7878

7979
const cssNanoOptions: cssNano.CssNanoOptions = {
80-
preset: 'default',
80+
preset: ['default', {
81+
// Disable SVG optimization, as this can cause optimizations which are not compatible in all browsers.
82+
svgo: false,
83+
}],
8184
};
8285

8386
const postCssOptions: ProcessOptions = {

0 commit comments

Comments
 (0)
Please sign in to comment.