react-svg-loader
react-svg-loader copied to clipboard
Ability to specify the name of the generated component

{
test: /\.svg$/,
use: [{
loader: 'react-svg-loader',
options: {
componentName: (resource: string) => {
return config.environment.production === true
? null
: upperFirst(camelCase(path.parse(resource).name))
},
}
}]
}