in my case, I have added this font awesome by declaring it in the header.
is there any way to inject this font awesome by libraries on the resource of my module and not call it externally by link
font-awesomelibrarymagento2
in my case, I have added this font awesome by declaring it in the header.
is there any way to inject this font awesome by libraries on the resource of my module and not call it externally by link
Best Answer
app/design/frontend/YourVendor/YourTheme/web/css
.fontawesome
directory.<css src="..." />
block in section in a layout file.app/design/frontend/YourVendor/YourTheme/Magento_Theme/layout/default_head_blocks.xml
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
Now check your css file will be added on your website.