Skip to content

allnulled/simplebundler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplebundler

Pack JS universal modules from CLI or API. But no webpack or shit. Simple.

Install

npm i -g @allnulled/simplebundler

Usage by CLI

simplebundler
  --dir directory
  --output dist/file.js
  --ignore file4.js file7.js file9.js
  --id MyCoolAPI
  --module false

Usage by API

require(__dirname + "/simplebundler.js").bundle({
    dir: "test/lib1",
    output: "test/lib1.browser.js",
    module: true,
    id: "Lib1",
    ignore: [],
}).bundle({
    dir: "test/lib1",
    output: "test/lib1.node.js",
    module: true,
    id: "Lib1",
    ignore: ["only-browser.js"],
});

About

Pack JS universal modules from CLI or API. But no webpack or shit. Simple.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors