bootstrap-generator

1.0.0 • Public • Published

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

Name Type Default Description
location string ./node_modules/bootstrap/js/dist/ Location of Bootstrap js files
destination string ./ Destination for Bootstrap Files
files Object All parts are included Which parts of bootstrap do you want to use
minify Boolean True Generate minified version of Bootstrap.js
gzip Boolean True Generate gzip version of Bootstrap.js

Changelog

v1.0.0 - 2017-12-03

  • Initial release

Readme

Keywords

none

Package Sidebar

Install

npm i bootstrap-generator

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • stefspakman