noelboss / featherlight

Featherlight is a very lightweight jQuery lightbox plugin. It's simple yet flexible and easy to use. Featherlight has minimal css and uses no inline styles, everything is name-spaced, it's completely customizable via config object and offers image, ajax and iframe support out of the box. Featherlights small footprint weights about 4kB – in total.
https://www.noevu.ch/featherlight-js-the-ultra-slim-lightbox/
MIT License
2.08k stars 293 forks source link

Turned featherlight.js into UMD module #377

Closed MikhailRoot closed 5 years ago

MikhailRoot commented 5 years ago

Now we can use it in ES6 code like import 'featherlight'; and it will not say there's no jQuery if you use webpack. No code inside Featherlight itself was changed, just wrapped into UMD loader.

marcandre commented 5 years ago

Thanks for the PR! Please note that I'm currently travelling, so I probably won't be able to check this out as quickly as I'd like, but I will.

MikhailRoot commented 5 years ago

Hi @marcandre I've wrapped featherllight.gallery in UMD as well for convenience. NB: minified js files in /release are not recompiled. i've changed just sources.

baezor commented 5 years ago

Hope the PR can be merged soon! Would be great use it as UMD module.

jontro commented 5 years ago

Any status update on this? Edit: I can confirm that this pull request works. The minified files needs to be rebuild of course

marcandre commented 5 years ago

Thanks for the ping! Merged and released. Thanks for the great PR.

Coysh commented 2 years ago

Hi all, Wondering how the gallery works?

import featherlight from 'featherlight'; seems to work for me - but I can't figure out how to import the gallery.

jamaluddinrumi commented 2 years ago

Hi all, Wondering how the gallery works?

import featherlight from 'featherlight'; seems to work for me - but I can't figure out how to import the gallery.

anyone, any idea?