FWeinb / grunt-svgstore

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

SVG attributes with hyphen in the name? #136

Closed strider72 closed 6 years ago

strider72 commented 6 years ago

In either Option or Symbol, how do I specify an attribute that has a hyphen in the name, e.g. "stroke-width"? Grunt itself doesn't allow hyphens, so when I try to say:

symbol: {
    stroke-width: '2'
}

Grunt gets mad at me. Any ideas?

strider72 commented 6 years ago

Got it. I can put the string in quotes, e.g. 'stroke-width': '2'