https://github.com/allnulled/simplebundler
Pack JS universal modules from CLI or API. But no webpack or shit. Simple.
https://github.com/allnulled/simplebundler
Last synced: about 1 year ago
JSON representation
Pack JS universal modules from CLI or API. But no webpack or shit. Simple.
- Host: GitHub
- URL: https://github.com/allnulled/simplebundler
- Owner: allnulled
- Created: 2024-12-17T10:50:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-17T10:52:29.000Z (over 1 year ago)
- Last Synced: 2025-03-30T05:32:57.528Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simplebundler
Pack JS universal modules from CLI or API. But no webpack or shit. Simple.
## Install
```sh
npm i -g @allnulled/simplebundler
```
## Usage by CLI
```sh
simplebundler
--dir directory
--output dist/file.js
--ignore file4.js file7.js file9.js
--id MyCoolAPI
--module false
```
## Usage by API
```js
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"],
});
```