cpreston321 / nuxt-swiper

Swiper.js for Nuxt
https://www.npmjs.com/package/nuxt-swiper
MIT License
220 stars 10 forks source link

May I exclude nuxt-swiper global css? #169 #88

Open kyejune opened 1 year ago

kyejune commented 1 year ago

I don't want to add (swiper.css as global css) to my project since it overwrite my projects scoped style.

S1ipKn0T commented 5 months ago

any update for that cuz I want to add css styles in my project manually not import all styles to all pages! this is seo loading page problem guys!

SuvorovDM commented 5 months ago

Swiper and SwiperSlide are global components. They add global styles. Disabling global components may solve the problem

cpreston321 commented 5 months ago

Please try v2 which should solve this case -> https://github.com/cpreston321/nuxt-swiper/pull/109

Docs: https://github.com/cpreston321/nuxt-swiper/tree/feat/elements?tab=readme-ov-file#nuxt-swiper

Then within the the nuxt config:

swiper: {
 bundled: false
}

Thanks, CP