title: How to import bootstrap 5 bundle js with npm?
body: <p>I've some problem with bootstrap5 and NPM.
  The website design use bootstrap and works but not all the js (dropdown, modals etc...), I just would like to learn hot to import the js bs bundle without CDN.
  Someone can help me, please? thanks for your time</p>
  <p><strong>my steps:</strong></p>
  <pre><code>npm install bootstrap@5.0.0-alpha1
  npm install popper.js --save
  npm intsall node-sass --save-d
  </code></pre>
  <p><strong>Package.json:</strong></p>
  <pre><code>{
    &quot;name&quot;: &quot;xlf&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,
      &quot;dev&quot;: &quot;./node_modules/.bin/webpack --watch&quot;,
      &quot;sass&quot;: &quot;node-sass --watch src/scss -o dist/css --output-style nested&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;dependencies&quot;: {
      &quot;bootstrap&quot;: &quot;^5.0.0-alpha1&quot;,
      &quot;popper.js&quot;: &quot;^1.16.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;node-sass&quot;: &quot;^5.0.0&quot;,
      &quot;webpack&quot;: &quot;^5.26.0&quot;,
      &quot;webpack-cli&quot;: &quot;^4.5.0&quot;
    }
  }
  </code></pre>
  <p><strong>webpack.config.js</strong></p>
  <pre><code>const path = require('path');
  
  module.exports = {
     entry: './src/js/app.js',
     output: {
        path: path.resolve(__dirname, 'dist','js'),
        filename: 'app.js',
     },
     mode: 'production',
     module: {
        rules:[
         {
            test: /.(scss|css)$/,
            use:
            [
               {
                  options: { reloadAll: true },
               },
               'css-loader',
               'sass-loader',
               'node-sass'
            ]
         }
        ]
     }
   };
  </code></pre>
  <p><strong>src/js/app.js</strong></p>
  <pre><code>import 'bootstrap';
  </code></pre>
  <p><strong>src/scss/app.scss</strong></p>
  <pre><code>@import '../../node_modules/bootstrap/scss/bootstrap.scss';
  </code></pre>