caspian154 / beer-shelf

3 stars 1 forks source link

Using npm packages in angular site #2

Closed caspian154 closed 7 years ago

caspian154 commented 7 years ago

font-awesome is installed via npm insall font-awesome -s, what is the best way to reference that from the angular public "app"?

MichaelWashburnJr commented 7 years ago

I don't know if this helps, but in my OpenBrews project, I use npm for development tools/server stuff, and bower to install js/css libraries. Then I can set the bower directory in a .bowerrc file like so:

#.bowerrc
{
  "directory": "openbrews/lib"
}
caspian154 commented 7 years ago

Sweet - that probably works. I didn't use bower yet, but I figured it was one of the things I should do next.

fostertheweb commented 7 years ago

Try unpkg for front-end dependencies

MichaelWashburnJr commented 7 years ago

ooooh Ya you should try that

caspian154 commented 7 years ago

Done.