Example trying to browserify
my Node package nativeplantcenter
https://www.npmjs.com/package/nativeplantcenter
https://github.com/CoderCoop/node-nativeplantcenter
Install http-server
and browserify
globally:
npm install http-server browserify -g
Usage:
npm install
browserify main.js > bundle.js
http-server
Then open the localhost
URL in a browser and look at the JS console
Current error:
Uncaught TypeError: require.resolve is not a function