metafizzy / flickity

:leaves: Touch, responsive, flickable carousels
https://flickity.metafizzy.co
7.52k stars 605 forks source link

Build without jQuery #958

Closed christopherdarling closed 5 years ago

christopherdarling commented 5 years ago

Trailing out using the library in an upcoming project, we won't be making use of jQuery at all and would be great if we could use (or build) a slimmer build without jQuery. Any chance of this being an option?

desandro commented 5 years ago

Flickity is written in vanilla JS. jQuery is an optional dependency. Flickity does include jQuery Bridget in its source, but that's only an extra 100 lines of code. If you did want to build a version of flickity.pkgd.js, you can remove jquery-bridget.js from gulpfile.js