hongaar/unveil2

package.json needs "main" property

Opened this issue · 1 comments

In order for unveil2 to work well as an NPM package, your package.json file ought to specify

 "main": "src/jquery.unveil2.js"

As it stands, I can't, for instance, use it with WebPack, because WebPack doesn't know which file to load when I require "unveil2" in my code. (The default value for main is "index.js", but you don't have a file by that name in your build.)

Thanks for raising this issue. I'm happy to accept a PR with this change!
Can you use import unveil from "unveil2/src/jquery.unveil2" as a workaround?