Skip to content

kapouer/postinstall-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postinstall-bundle

This is a postinstall command plugin.

It runs a bundler (currently rollup) on input, and outputs in iife format.

Usage

The plugin can be called directly, or through postinstall.

Directly:

require('postinstall-bundle')(inputs, output, options).then(function() {

});

Options

  • name: global name for exported symbols
  • format: amd, cjs, es, iife, umd, system, ... defaults to iife
  • replace: STRING:VALUE (option can be passed multiple times)
  • extend: extend or replace global name

About

postinstall command to bundle javascript files

Resources

License

Stars

Watchers

Forks

Packages

No packages published