availity-workflow icon indicating copy to clipboard operation
availity-workflow copied to clipboard

Webpack config and fonts

Open djejaquino opened this issue 4 years ago • 3 comments

❓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?

djejaquino avatar Mar 27 '20 13:03 djejaquino

I think this may be what you are looking for

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

GoPro16 avatar Mar 27 '20 14:03 GoPro16

Yes. Icon fonts...

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

djejaquino avatar Mar 27 '20 19:03 djejaquino

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 🙃

GoPro16 avatar Apr 15 '20 06:04 GoPro16