Azury's Bundler
Installation
Install the package using your favorite package manager.
npm i @azury/bundler
yarn add @azury/bundler
Bundle
build -i src/index.js -o build/index.js
Options:
-
--watch to bundle in watch mode
-
--css to enable css modules
import styles from './styles.module.css' <h1 className={styles.heading}>Hello World</h1>
-
--esm to output code as esm
-
--node to enable bundling for Node.js
-
--exlude or -e to exclude files from the bundle
Minify
ℹ️ You can minify any file a folder or just a single file.
build minify -i src -o build
ZIP
ℹ️ Mention the files you want to include in the archive and make sure to not forget the output.
build zip -f some.png other.png image.png -o myarchive.zip