Hi Team,
We have acquired license for Fontawesome pro and trying to configure the same in the aspnetzero application. We are using angular 8 - .netcore version(aspnetzero 7.2)
Below are the steps we have followed so far:
- Created an .npmrc file in the root directory of the host project where we have the package.json file and added the below lines along with valid token: @fortawesome:registry=https://npm.fontawesome.com/ //npm.fontawesome.com/:_authToken=XXXXXXXX-XXXX
- Next installed the latest version of fontawesome using yarn yarn add @fortawesome/fontawesome-pro
- Verified the package.json and the fortawesome version is the latest i.e. 5.13
- In the angular.json added the below line below the metronic theme "node_modules/@fortawesome/fontawesome-pro/css/all.css",
- Later in one of the component.html file tried using/ adding an icon from the font awesome pro version <i class="fal fa-camera"></i>
We are unable to see the icon on the UI, inspecting the element it seems it is still using the metronic class from the vendor.bundle.css
Could you please help me out with this as we are stuck with this and we need to implement some pro icons in our application.
7 Answer(s)
-
0
Hi @sumitshah That might be same issue. Can you please check that https://github.com/aspnetzero/aspnet-zero-core/issues/2710
-
0
Hi demirmusa,
Thank you for the reply but the link is giving me 404 - Page not found error.
-
0
-
0
-
0
Hi @sumitshah
You should login with your license owner's user or ask him/her to do it for you. (username: Jayesh)
-
0
Thank you,
I was able to view the private post and update the fonts as mentioned in the post. The things are working as desired and am able to use the fontawesome pro fonts in my application.
Am sure you guys are working on this and soon we would get a fix out so that there is no manual-copy-paste intervention required.
-
0
Great to hear that :)