Gulp not compiling fancybox into main.js

Hi,

I’ve installed fancybox using bower - it appears in the dependencies in the bower.json file + all assets are in the bower_components directory.

I’ve ran gulp but still get no outputted fancybox js in my dist/main.js file.

Am I missing a step?

Thanks for your help

The bower.json in Fancybox is weird (read: wrong) because it’s including multiple JS files. See https://github.com/fancyapps/fancyBox/issues/932

You’ll need to override the main property in your theme’s bower.json file to point to just one of the JS files.

Should also probably consider using a different project as that one appears to be abandoned.

1 Like

Thanks for your help @benword much appreciated!