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

Webpack config and fonts #410

Open
djejaquino opened this issue Mar 27, 2020 · 3 comments
Open

Webpack config and fonts #410

djejaquino opened this issue Mar 27, 2020 · 3 comments

Comments

@djejaquino
Copy link

❓Question

How does Webpack know it is supposed to serve availity-uikit fonts directory?

I know this loader matches the font files and uses file-loader in fonts dir. But where is the link between uikit and workflow?

@GoPro16
Copy link
Contributor

GoPro16 commented Mar 27, 2020

I think this may be what you are looking for

Unless you are talking about the custom icon fonts we have.

@djejaquino
Copy link
Author

Yes. Icon fonts...

I need to know how does webpack realizes that when that loader matches, it should grab the files from here

@GoPro16
Copy link
Contributor

GoPro16 commented Apr 15, 2020

Alright so I had to do some digging myself bc I too have not touched any of our uikit much at all.

We have a script that will pull in the font configs and parse svg content to css readable content. And then proceeds to populate the file with all those values that were populated from the config.

I hope that answered your question otherwise I'm going to have to refactor some code until it makes sense for me as it does for you lol 🙃

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

No branches or pull requests

2 participants