I install fancybox dependency via :
npm install fancybox
I\'m attempting to use the fancybox css within a html page :
<
The way to do this is to use a build tool such as webpack. You use npm to install your libraries into the node_modules/
subdirectory, require them within your javascript files and use webpack to produce a single bundle .js file that contains everything.
I'd start here: http://webpack.github.io/docs/what-is-webpack.html