8000 GitHub - stefspakman/bootstrap-generator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 27, 2023. It is now read-only.

stefspakman/bootstrap-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0