svgo.config.js 592 B

123456789101112131415161718192021222324
  1. // svgo.config.js
  2. module.exports = {
  3. multipass: true, // boolean. false by default
  4. datauri: 'enc', // 'base64' (default), 'enc' or 'unenc'.
  5. js2svg: {
  6. indent: 2, // string with spaces or number of spaces. 4 by default
  7. pretty: true, // boolean, false by default
  8. },
  9. plugins: [
  10. // set of built-in plugins enabled by default
  11. 'preset-default',
  12. // enable built-in plugins by name
  13. 'prefixIds',
  14. // or by expanded notation which allows to configure plugin
  15. {
  16. name: 'sortAttrs',
  17. params: {
  18. xmlnsOrder: 'alphabetical',
  19. },
  20. },
  21. ],
  22. }