Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import files with '#' in filename #28

Open
seanemmer opened this issue Sep 25, 2019 · 0 comments
Open

Unable to import files with '#' in filename #28

seanemmer opened this issue Sep 25, 2019 · 0 comments

Comments

@seanemmer
Copy link

seanemmer commented Sep 25, 2019

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

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

No branches or pull requests

2 participants