gatsby-plugin-react-svg icon indicating copy to clipboard operation
gatsby-plugin-react-svg copied to clipboard

Unable to import files with '#' in filename

Open seanemmer opened this issue 6 years ago • 0 comments

gatsby-config.js

    {
      resolve: 'gatsby-plugin-react-svg',
      options: {
        rule: {
          include: /duotone-icons-2/
        }
      }
    }

Application Code

import ServicesIcon from '../landkit/img/icons/duotone-icons-2/Shopping/Chart-line#1.svg'

...

<div className='icon icon-sm text-success'>
  <ServicesIcon />
</div>

Gatsby Develop Output:

image

seanemmer avatar Sep 25 '19 17:09 seanemmer