Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

One set of Quotation marks coming extra #76

Open
rravithejareddy opened this issue Feb 6, 2018 · 2 comments
Open

One set of Quotation marks coming extra #76

rravithejareddy opened this issue Feb 6, 2018 · 2 comments

Comments

@rravithejareddy
Copy link

rravithejareddy commented Feb 6, 2018

One set of Quotation marks coming extra on html, when i am using in react, see the below code
{require('!svg-inline-loader!./../../../../images/icons/added_to_list.svg')} and output is

screenshot 98

because of extra quotations react treating as text, when i remove the extra quotations it's working fine, please help me to sort it out,

Thanks in advance.

@jamesBennett
Copy link

Having the same issue.

@rravithejareddy
Copy link
Author

rravithejareddy commented Mar 30, 2018

I think you need to use Params like below in web-pack, i don't know whether this module have quotation param or not
{
test: /.svg$/,
loader: 'svg-inline-loader?classPrefix'
}

I solved by using another module(svg-url-loader) like below in web-pack
{
test: /.svg$/,
loader: ['svg-url-loader?noquotes=true']
}

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

No branches or pull requests

2 participants