ember-svg-jar icon indicating copy to clipboard operation
ember-svg-jar copied to clipboard

How to use our custom svg defs tag id instead of system generated

Open luxman-arumugam opened this issue 6 years ago • 1 comments

<defs> <path id="a" d="M0 .167h108.397v92.212H0z"></path> <path id="c" d="M0 .167h108.397v18.156H0z"></path> </defs> In the above code, a and c id's are system generated. But I need my own id's. Help me to achieve this.

luxman-arumugam avatar Aug 27 '18 14:08 luxman-arumugam

The minification of those ids happens with svgo's cleanupIDs plugin. You can disable it like this in your ember-cli-build.js config:

svgJar: {
  optimizer: {
    plugins: [
      {
        cleanupIDs: false
      }
    ]
  }
}

drouhard avatar Nov 27 '18 19:11 drouhard