summaryrefslogtreecommitdiff
path: root/chromium/tools/resources/svgo.config.js
blob: 538adcaf151ad475537a236a8c1c453e0169f5ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module.exports = {
  plugins: [
    {
      name: 'preset-default',
      params: {
        overrides: {
          // Removing viewBox is not always safe, since it assumes that
          // width/height are not overridden in all usages of an SVG file. Feel
          // free to remove viewBox manually from a certain SVG if you have
          // audited all its usages.
          removeViewBox: false,

          // https://github.com/svg/svgo/issues/1672
          minifyStyles: false,
        },
      },
    },
  ],
};