Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Import fails #54

Open
arturhun opened this issue Feb 14, 2019 · 1 comment
Open

Import fails #54

arturhun opened this issue Feb 14, 2019 · 1 comment

Comments

@arturhun
Copy link

I don't know for others, but in an Angular cli app the suggested way of importing images doesn't compile for me (nor is it scalable - but that's another story):

import visa from 'payment-icons/min/flat/visa.svg';
import mastercard from 'payment-icons/min/flat/mastercard.svg';
import maestro from 'payment-icons/min/flat/maestro.svg';
import amex from 'payment-icons/min/flat/amex.svg';

image

Do you have a solution for that?

@muffinresearch
Copy link
Owner

Unfortunately I can't help there, the examples given in the readme should work for a webpack built app assuming the relevant loader is configured.

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