Monday, 3 April 2017

Should I hard code references to my node_modules folder?

I'm creating an npm package and I need to reference a folder within that package. Should I hard code the reference to that folder?

e.g. `src = './node_modules/ctgen/scaffold'

or is there a pre-made function that will do this for me?



via Alex Foxleigh

No comments:

Post a Comment