@allnulled/simplebundler
v1.0.0
Published
Pack JS universal modules from CLI or API. But no webpack or shit. Simple.
Readme
simplebundler
Pack JS universal modules from CLI or API. But no webpack or shit. Simple.
Install
npm i -g @allnulled/simplebundlerUsage by CLI
simplebundler
--dir directory
--output dist/file.js
--ignore file4.js file7.js file9.js
--id MyCoolAPI
--module falseUsage 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"],
});