ressio / lazy-load-xt

Lazy load XT is a jQuery plugin for images, videos and other media
http://ress.io/lazy-load-xt-jquery/
MIT License
1.36k stars 243 forks source link

Wrong 'main' entry in bower.json #77

Open PhilippSoehnlein opened 8 years ago

PhilippSoehnlein commented 8 years ago

The bower.json file points to two files in the main entry:

{
    //…
    "main": ["dist/jquery.lazyloadxt.js", "dist/jquery.lazyloadxt.extra.js"],
    //…
}

This may lead to wrong builds when build tools like wiredep or grunt-bower-concat try to build bundles from the main-entry in bower.json, because effectively lazy-load-xt will end up twice in the generated bundle file (which seems to work, but leads to a bundle that is bigger than it needed to be).

I would recommend to only include dist/jquery.lazyloadxt.js in the main entry.