Registry / web-framework / bootstrap-webpack

bootstrap-webpack

JSON →
library0.0.6jsnpmunverified

Bootstrap 3 package for webpack, version 0.0.6 (last release). Provides LESS-based integration of Bootstrap 3 with webpack, allowing custom configuration via bootstrap.config.js and bootstrap.config.less files. Supports extraction of CSS with extract-text-webpack-plugin. Requires many peer dependencies including css-loader, less-loader, style-loader, and imports-loader. No updates since 2017; considered abandoned. Alternative: bootstrap-loader or framework-specific setups.

npm install bootstrap-webpack
INSTALL
IMPORT
SIG · BOOTSTRAP-WEBPACK
B
bootstrap-webpack
web-frameworkjavascriptv0.0.6
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

require('bootstrap-webpack')
require('bootstrap-webpack')
import 'bootstrap-webpack'
This package uses CommonJS; ESM import may not work properly.
require('bootstrap-webpack!./bootstrap.config.js')
require('bootstrap-webpack!./bootstrap.config.js')
require('./bootstrap.config.js')
Use the webpack loader syntax to specify config file.
module.exports = { scripts: { ... }, styles: { ... } }
In bootstrap.config.js module.exports = { scripts: { 'transition': true }, styles: { 'mixins': true } }
export default { scripts: ..., styles: ... }
Config file uses CommonJS module.exports, not ES modules.

Minimal setup to include Bootstrap 3 in webpack project with font loaders.

// webpack.config.js module.exports = { entry: ['bootstrap-webpack', './app.js'], module: { loaders: [ { test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff' }, { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/octet-stream' }, { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: 'file' }, { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=image/svg+xml' } ] } }; // app.js require('bootstrap-webpack'); require('./styles.less'); // Install peer deps: npm install bootstrap css-loader less-loader style-loader url-loader file-loader imports-loader exports-loader extract-text-webpack-plugin --save-dev
Debug
Known issues
breakingPackage is abandoned; no updates since 2017. May not work with webpack 4 or 5.
fix
Migrate to bootstrap-loader or use Bootstrap 4+ with direct webpack setup.
affects: >=0.0.6
gotchaRequires many peer dependencies; missing them causes runtime errors.
fix
Install all peer deps: npm install bootstrap@3 css-loader less-loader style-loader url-loader file-loader imports-loader exports-loader extract-text-webpack-plugin --save-dev
affects: >=0.0.0
gotchaBootstrap JS requires jQuery; uses imports-loader but may cause conflicts.
fix
Ensure jQuery is installed or use a custom bootstrap.config.js to exclude JS.
affects: >=0.0.0
deprecatedUses webpack 1 loader syntax (loaders array with test/loader). Webpack 2+ uses rules.
fix
Update webpack config to use rules and use for v4+: { test: ..., use: [ ... ] }
affects: >=0.0.0
Errors
Common errors & fixes
Module not found: Error: Can't resolve 'imports-loader'
Missing peer dependency imports-loader.
fix
npm install imports-loader --save-dev
Module build failed: Error: Cannot find module 'less-loader'
Missing peer dependency less-loader.
fix
npm install less-loader --save-dev
Module not found: Error: Can't resolve 'bootstrap' in '...'
Bootstrap not installed as a dependency.
fix
npm install bootstrap@3 --save
Upgrade
Version history
0.0.6latest on npm
Audit
Dependencies
bootstraprequiredPeer dependency, requires Bootstrap >=3.0.2
css-loaderrequiredPeer dependency for processing CSS
less-loaderrequiredPeer dependency for processing Less files
style-loaderrequiredPeer dependency for injecting styles
imports-loaderrequiredPeer dependency for jQuery dependency in Bootstrap JS
extract-text-webpack-pluginoptionalOptional peer dependency for extracting CSS
Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
bootstrap-webpack — npm install bootstrap-webpack · libregistry