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.)
In order for unveil2 to work well as an NPM package, your package.json file ought to specify
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.)