bg

bootstrap-generator

Generate a Bootstrap JavaScript file. Works with Bootstrap 3 and 4

Showing:

Popularity

Downloads/wk

10

Maintenance

No Maintenance Data Available

Package

Dependencies

9

Size (min+gzip)

211.7KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Bootstrap Generator NPM version

Generating custom Bootstrap JS files. Only use the parts you need. The generator makes sure you load the right parts. For Bootstrap 4+ either Tether or PopperJs are automatically downloaded and included in the resulting file.

Install

$ npm install --save bootstrap-generator

Usage

Example:

var bootstrap = require('bootstrap-generator');

bootstrap({
    location: "./node_modules/bootstrap/js/dist/",
    files: {
      alert: true,
      button: true,
      carousel: true,
      collapse: true,
      dropdown: true,
      modal: true,
      popover: true,
      scrollspy: true,
      tab: true,
      tooltip: true
    },
    minify: false,
    gzip: false,
    destination: './destination/'
  });

Options

NameTypeDefaultDescription
locationstring./node_modules/bootstrap/js/dist/Location of Bootstrap js files
destinationstring./Destination for Bootstrap Files
filesObjectAll parts are includedWhich parts of bootstrap do you want to use
minifyBooleanTrueGenerate minified version of Bootstrap.js
gzipBooleanTrueGenerate gzip version of Bootstrap.js

Changelog

v1.0.0 - 2017-12-03

  • Initial release

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100