Closed gbk closed 8 years ago
I think you want to do this:
'svg-react?attrs=' + JSON.stringify({ style: {}, width: 'auto', height: 'auto' })
For example:
xx-loader?a={foo:1,bar:2}
loader-util will parse this query to
{
"a": "{foo:1",
"bar:2}": true
}
This result is not we want.
If svg-react-loader can support json query, may fix this issue.
Fixed with 96e04b8d
Merged to master and revved to npm svg-react-loader@0.3.3.
Thank you :+1:
My webpack config is like this:
I got
at
Query string with
,
will be splited, So I have to use query object. Can you support this ?