Skip to content

webpack config: add support for bootstrap 4 beta 2#71

Closed
baldychristophe wants to merge 1 commit intomasterfrom
chbaldy/support_bootstrap4
Closed

webpack config: add support for bootstrap 4 beta 2#71
baldychristophe wants to merge 1 commit intomasterfrom
chbaldy/support_bootstrap4

Conversation

@baldychristophe
Copy link
Copy Markdown

@baldychristophe baldychristophe commented Dec 18, 2017

Bootstrap is dependent on jQuery and Popper, so they must be
provided explicitly by webpack.

This commit includes a new plugin to webpack to fix a
problem related to jQuery and according to the configuration
example provided here:
http://getbootstrap.com/docs/4.0/getting-started/webpack/

The dependency on Popper should be resolved by including
bootstrap.bundle.js instead of only bootstrap.js in the
project imports.
The bundled version of bootstrap includes popper since this
pull request and should not be a problem in the future.
twbs/bootstrap#23735

Bootstrap is dependent on jQuery and Popper, so they must be
provided explicitly by webpack.

This commit includes a new plugin to webpack to fixe a
problem related to jQuery and according to the configuration
example provided here:
http://getbootstrap.com/docs/4.0/getting-started/webpack/

The dependency on Popper should be resolved by including
`bootstrap.bundle.js` instead of only `bootstrap.js` in the
project imports.
The bundled version of bootstrap includes popper since this
pull request and should not be a problem in the future.
twbs/bootstrap#23735
@vperron
Copy link
Copy Markdown
Contributor

vperron commented Jan 8, 2018

Seems to me that this is project-specific and not related to systematic. If your project uses bootstrap, then provide jquery as you did in this PR in the project's webpack.conf.js.

Copy link
Copy Markdown
Contributor

@vperron vperron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't approve of this since it's not useful in the general case (without bootstrap) and wouldn't work if the project doesn't use jquery.

@baldychristophe
Copy link
Copy Markdown
Author

fine, this isn't the right place to put this code.
anyway, with bootstrap 4 beta 3 I don't have the problem anymore, so I am closing this PR.

@baldychristophe baldychristophe deleted the chbaldy/support_bootstrap4 branch January 15, 2018 12:38
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

Successfully merging this pull request may close these issues.

2 participants