bonk

1.0.2 • Public • Published

bonk

Bundle your assets to a single js file

Usage

Below is an example of all the available features. It will bundle the contents of src/, expose lib/some/file.js as the module 'mymodule', add lib/jquery.js to the output without wrapping it in the commonjs wrapper.

var fs = require('fs');
var Bonk = require('./lib/bonk').Bonk;
var output = new Bonk().bundle(['src/', {name: 'mymodule', file: 'lib/some/file.js'}, {file: 'lib/jquery.js', bare: true}]);
fs.writeFileSync('app.js', output.js);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    1

Package Sidebar

Install

npm i bonk

Weekly Downloads

2

Version

1.0.2

License

none

Last publish

Collaborators

  • kaptajnen