specious / cloud9carousel

:cyclone: 3D-perspective carousel for jQuery / Zepto
http://j.mp/cloud9demo
233 stars 88 forks source link

"main" field in package.json so Browserify works. Tested. #7

Closed jadaradix closed 8 years ago

jadaradix commented 8 years ago

If you want to use Browserify with this, it will need to know which JavaScript file to load. Firstly Browserify will check the "main" field (like node.js) else the convention is index.js. Anyway, this PR fixes loading this module via Browserify and probably webpack as well (although I haven't tested that). This is the error I received and which is fixed:

Running "browserify:watch" (browserify) task
>> Error: Cannot find module 'cloud9carousel' from '/Users/james/test'