1.0.0 • Published 6 years ago

bootstrap-generator v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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