Skip to content

MiguelCastillo/bit-bundler-banner

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

bit-bundler-banner

Greenkeeper badge

Add a banner to your bundles

Usage

install

$ npm install --save-dev @bit/bundler-banner

config

Simple setup passing the string to be added to the bundle to the top.

var Bitbundler = require("@bit/bundler");

var bitbundler = new Bitbundler({
  bundler: [
    ["@bit/bundler-banner", "/*! bit-bundler-banner. Miguel Castillo. Licensed under MIT */"]
  ]
});

You can altenatively pass a function that returns a string to be used as the banner string.

var Bitbundler = require("@bit/bundler");

var bitbundler = new Bitbundler({
  bundler: [
    ["@bit/bundler-banner", (bundle) => `/*! bit-bundler-banner ${bundle.name}. Miguel Castillo. Licensed under MIT */`]
  ]
});

About

Add a banner to your bundles

Resources

License

Stars

Watchers

Forks

Packages

No packages published