Skip to content

cernohous-adam/symfony-webpack-encore-bootstrap-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

symfony-webpack-encore-bootstrap-4

  • yarn add @symfony/webpack-encore --dev

  • yarn add jquery --dev

  • yarn add [email protected]

Many of Bootstrap 4 components require the use of JavaScript to function. Specifically, they require jQuery, Popper.js, and Bootstrap own JavaScript plugins. jQuery must come first, then Popper.js, and then our JavaScript plugins.

So its necessary to require bootstrap.bundle.js instead of bootstrap.js in your main JS file due to Popper dependency.

require('bootstrap/dist/js/bootstrap.bundle.js');

See the example file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published