4 comments

  • Tim DaveyTim Davey, over 7 years ago

    Can anybody figure out how to set parameters to 'true' in the config file?

    0 points
    • Ale MuñozAle Muñoz, over 7 years ago

      Which SVGO plugin are you trying to use?

      The 'removeDesc' plugin has an example of how to set one of its parameters in the default svgo.json file…

      0 points
      • Mathieu C, over 7 years ago

        I can't set "floatPrecision" to 2, on cleanupNumericValues. Export seems ignore these parameters, or maybe I do something wrong... Is it possible to have your personal config if you tweaked it? Thank you!

        0 points
        • Ale MuñozAle Muñoz, over 7 years ago

          Just make sure your JSON file looks like this around that particular plugin:

          … { "name": "cleanupNumericValues", "params": { "floatPrecision": 2 } }, …

          Tested here and works as expected : )

          1 point