Bootstrap: Can I use Bootstrap v4 Carousel as a module with browserify/webpack?

Created on 5 Jan 2017  路  3Comments  路  Source: twbs/bootstrap

I'm reading at the Installation readme:

You can manually load Bootstrap鈥檚 jQuery plugins individually by loading the /js/*.js files under the package鈥檚 top-level directory.

I don't really get that part. I tried several combinations, amongst which:

import carousel from 'bootstrap/js/src/carousel.js'

but nothing really works.

Can I use the Bootstrap v4 Carousel without having the rest of the Bootstrap modules with browserify/webpack? - or do I have to manually add it in my codebase?

(and if I can't, how do I build it - the customizer is gone -) cc @fat

js v4

Most helpful comment

@petetnt I hope a solution will be found.

All 3 comments

I have outlined the issue and put out some ideas in #19017 that would allow for proper module usage of any Bootstrap components.

@petetnt I hope a solution will be found.

We have in our documentation an how to use Bootstrap with Webpack which explain that see : https://github.com/twbs/bootstrap/blob/v4-dev/docs/4.0/getting-started/webpack.md

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ziyi2 picture ziyi2  路  3Comments

devdelimited picture devdelimited  路  3Comments

tiendq picture tiendq  路  3Comments

matsava picture matsava  路  3Comments

ghost picture ghost  路  3Comments