availity-workflow
availity-workflow copied to clipboard
Webpack config and fonts
❓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
?
I think this may be what you are looking for
Unless you are talking about the custom icon fonts we have.
Yes. Icon fonts...
I need to know how does webpack realizes that when that loader matches, it should grab the files from here
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 🙃