webpack provide bootstrap code example
Example 1: ./node_modules/bootstrap/dist/js/bootstrap.bundle.js
npm i --save-dev bootstrap@next bootstrap-loader tether jquery
Example 2: ./node_modules/bootstrap/dist/js/bootstrap.bundle.js
npm install --save resolve-url-loader --dev