Wednesday 31 May 2017

Copy assets from NPM

I'm trying to use font-awesome with npm but with the newest version (>4) I'm having difficulty finding the fonts directory.

Before, I was using a npm script like cp -R ./node_modules/font-awesome/fonts/* dist/assets/ but this doesn't work anymore when my library is used by a program that will regroup all the modules at the root directory.

Is there a safe method to know where they are or any other trick that could achieve the same goal?

Thanks



via NorTicUs

No comments:

Post a Comment