Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup option is not working #101

Open
fixmysync opened this issue Aug 12, 2015 · 1 comment
Open

Cleanup option is not working #101

fixmysync opened this issue Aug 12, 2015 · 1 comment

Comments

@fixmysync
Copy link

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
Copy link

clemsontiger commented May 12, 2017

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants