metafizzy / flickity-hash

Select Flickity slides with links
11 stars 10 forks source link

How to import along side flickity-imagesloaded? #9

Closed danimalweb closed 4 years ago

danimalweb commented 4 years ago

Looks like a great plugin for flickity.

Does anyone know how I can use this with flickity-imagesloaded?

Currently, I am importing Flickity this way:

import Flickity from "flickity-imagesloaded";

If I change to:

import Flickity from "flickity-hash";

I will lose the images loaded functionality.

Thanks!

danimalweb commented 4 years ago

I found the answer in the docs: https://flickity.metafizzy.co/extras.html#webpack

const Flickity = require('flickity'); require('flickity-imagesloaded'); require('flickity-hash');