FWeinb / grunt-svgstore

Merge svgs from a folder
MIT License
920 stars 94 forks source link

Cleanup option is not working #101

Open fixmysync opened 9 years ago

fixmysync commented 9 years ago

I've set the cleanup option to true (and also tried cleanup: ['style']) but my svg-defs.svg file still has style tags.

svgstore: {
                  options: {
                    prefix : "icon-",
                    includeTitleElement: true,
                    cleanup: true,
                    svg: {
                      style: "display: none;"
                    },
                    symbol: {},
                    formatting : {
                      indent_size : 2
                    }
                  },
                  default: {
                    files: {
                      "images/svg/svg-defs.svg": ["assets-svg/*.svg"]
                    }
                  }
                },
clemsontiger commented 7 years ago

not running cleanup for me either, my strokes are still there

svgstore: {
    options: {
      prefix : '',
      svg: { 
        viewBox : '0 0 24 24',
          style: 'display: none;',
          xmlns: 'http://www.w3.org/2000/svg'          
      }
      ,includedemo: true
    },
    cleanup: ['stroke'],
     cleanupdefs: ['stroke'],
    default: {    
      files: {
        'dist/icons.svg': ['svgs/*.svg'],    
      }
    },
  }

<path fill="none" stroke="#222222" stroke-width="2"