Skip to content
A bundling tool for js lib implemented by es6.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
LICENSE
README.md
package.json

README.md

lib-bundler

lib-bundler is a bundling tool for js lib implemented by es6.

Usage

$ npm install lib-bundler --save-dev

build.js

var Bundler = require('lib-bundler');

var bundler = new Bundler({
    type: "commonjs" // all, commonjs, umd; default is 'all'.
    project: "test",
    moduleName: "test",
    author: "author",
    version: "1.0.0",
    entry: "./src/index.js",
    output: "./dist",
    license: "MIT"
});

bundler.bundled()

.babelrc

{
  "presets": [ "es2015-rollup" ]
}

Bundled

$ node build.js

Output

test.common.js
test.js
test.min.js
test.min.js.gz
test.min.js.map

Feedback

If you any questions, use Issues.

Sina Weibo: @miaowingz

License

MIT Licence.

You can’t perform that action at this time.