markusantonwolf/ta-gallery

Webpack does not include taGallery

Jako opened this issue · 2 comments

Jako commented

I had to add ta-gallery in an existing project and the build process does not include the taGallery script for whatever reason.

I had to add the following lines to the main.js file to make the script work:

// Import taGallery
/* eslint-disable no-unused-vars */
import taGallery from '@markusantonwolf/ta-gallery/dist/js/ta-gallery-next';
/* eslint-enable no-unused-vars */

adding require('@markusantonwolf/ta-gallery') to the plugin section in tailwind.config.js was not enough.

Tailwind 3, Webpack 4

Thank you very much - I will add this to the documentation...