JetBrains / svg-sprite-loader

Webpack loader for creating SVG sprites.
MIT License
2.01k stars 271 forks source link

Able to extract svg into a file, but not injecting it into dom (tried sprite-injector too!) #319

Closed kalyantm closed 5 years ago

kalyantm commented 5 years ago

Do you want to request a feature, report a bug or ask a question? ask a question What is the current behavior? extracts the svgs into an icons.svg file, but not injecting it into the DOM What is the expected behavior? extracts the svg and injects it into the dom If the current behavior is a bug, please provide the steps to reproduce, at least part of webpack config with loader configuration and piece of your code. The best way is to create repo with minimal setup to demonstrate a problem (package.json, webpack config and your code). It you don't want to create a repository - create a gist with multiple files

GIST : https://gist.github.com/kalyantm/297b88d6ee5d9837044ca2c5e3f8a357

If this is a feature request, what is motivation or use case for changing the behavior?

Please tell us about your environment:

I'm also using storybook with React 16 to checkout the various UI Components

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)