Webpack loader to bundle Bootstrap 3 & 4 styles (Sass) and scripts. Version 4.0.5, last updated 2018; low maintenance. Supports Bootstrap 4 with customizations via .bootstraprc. Differentiators: inline SVG/PNG glyphicons, Tether integration, PostCSS config. Full peer dependencies required: css-loader, sass-loader, mini-css-extract-plugin, webpack >=5.0.
npm install bootstrap-loaderVerified import paths — ran on the pinned version, not inferred.
Minimal webpack config to load Bootstrap via bootstrap-loader and separate custom SCSS.
Add ProvidePlugin for jQuery and Popper.js, or use Bootstrap 4 JS via another method.
Upgrade webpack to >=5.0.0, or pin bootstrap-loader@3.x for webpack v4.
Use webpack >=5 or downgrade to bootstrap-loader@3.x with proper extract-text-webpack-plugin version.
Consider migrating to direct Bootstrap imports or a modern alternative like bootstrap (official npm package) with webpack.
Add file-loader or url-loader for fonts/images, and set proper paths in .bootstraprc.
npm install bootstrap-loader --save-dev and ensure it's listed in webpack entry or imported.
npm install mini-css-extract-plugin --save-dev (for webpack 5).
Set $icon-font-path in your .bootstraprc pre-customizations or import Bootstrap variables before glyphicons.