Skip to content

third party libraries. #130

Closed Answered by gregsullivan
tavo379 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello again!

On the CSS front, I would suggest looking at the ESBuild documentation for importing CSS:

https://esbuild.github.io/content-types/#css-from-js

Your mileage may vary on this, but I often integrate what I need from JavaScript libraries in the ./tailwind/custom/components folder. Then they become part of my overall Tailwind build, and I can edit them as necessary. (I find that I can often remove large chunks of the CSS based on the functionality I'm using from a given library.)

In terms of initializing Swiper, I think you may need something more like this:

window.swiper = new Swiper(...);

I don't have any direct experience with Swiper, though—if that doesn't work, please let me …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tavo379
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants