flobar
flobar

Reputation: 121

How do you use NPM to get fontawesome pro css files

I hope someone can help me here. We recently purchased a font awesome pro license and would like to use it on many sub-domains, but can't add each one under the services tab on the font awesome site to allow the CDN access. So we decided to have the files in our project using NPM. But so far it seems like it only downloads the JS version of font awesome, which makes sense if the project was built as a javascript application, but it's not. We currently use css version, and were wondering if NPM has a font awesome pro css version we can reference.

Upvotes: 0

Views: 772

Answers (2)

flobar
flobar

Reputation: 121

After some research I found the answer on their site. This command downloads the pro css files.

$ npm install --save @fortawesome/fontawesome-pro-webfonts

Upvotes: 0

anshuVersatile
anshuVersatile

Reputation: 2068

$ npm i --save @fortawesome/fontawesome-pro-solid
$ npm i --save @fortawesome/fontawesome-pro-regular
$ npm i --save @fortawesome/fontawesome-pro-brands

Have you tried above...

you need to add npm config set "@fortawesome:registry" https://npm.fontawesome.com/TOKEN

Upvotes: 1

Related Questions