Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #34673
Closed
Open
Issue created Aug 04, 2021 by Administrator@rootContributor

[docs] Importing JavaScript instruction incorrect for all plugins

Created by: mariusa

https://getbootstrap.com/docs/5.0/getting-started/webpack/ says

Importing JavaScript
Import Bootstrap’s JavaScript by adding this line to your app’s entry point (usually index.js or app.js):

// You can specify which plugins you need
import { Tooltip, Toast, Popover } from 'bootstrap';

Alternatively, if you only need just a few of our plugins, you may import plugins individually as needed:

The 1st section should go into 2nd section, and 1st should specify how to import all plugins:

Importing JavaScript
Import Bootstrap’s JavaScript by adding this line to your app’s entry point (usually index.js or app.js):
import * from 'bootstrap'; // TODO don't know which is the correct import for all plugins


Alternatively, if you only need just a few of our plugins, you may import plugins individually as needed:
// You can specify which plugins you need
import { Tooltip, Toast, Popover } from 'bootstrap';
Assignee
Assign to
Time tracking