hakimel/Ladda — pull request #47 by ThibWeb (2014-12-24 10:38:43+00:00)
Title: Add 'main' field in package.json for easier CommonJS loading

Hi there,

for CommonJS / Browserify users, it is way easier to `require` modules by their name, rather than by a path. I just added the `main` field to the project's package.json to achieve this ([browserify documentation](https://github.com/substack/node-browserify#packagejson), and also updated the example in the README.

BTW if you do not want to merge this PR, the current CommonJS example does not work because the path needs to be prefixed by `./` (`var ladda = require('./Ladda/dist/ladda.min');`).