Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack does not include taGallery #20

Closed
Jako opened this issue May 12, 2022 · 2 comments
Closed

Webpack does not include taGallery #20

Jako opened this issue May 12, 2022 · 2 comments

Comments

@Jako
Copy link

Jako commented May 12, 2022

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

@markusantonwolf
Copy link
Owner

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

@markusantonwolf
Copy link
Owner

markusantonwolf commented May 17, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants