Thursday 16 March 2017

Browserify for using node modules in website

I am trying to use browserify, and I installed it using the command npm install -g browserifyindex.js it still throws error because of the requires used in index file.
I would be very grateful if someone can explain me how it works.

<script src="js/browserify/index.js"></script>
<script src="js/functions/getdata.js"></script>

I tried to use requireJS too, but after I require what I need, It still says that what I require is not a function even if it is.



via Daniel

No comments:

Post a Comment