packu
v2.1.0
Published
📦 A better bundler for Node.js
Downloads
1
Maintainers
Readme
packu
Installation
Install packu using your favorite package manager.
npm i packu
yarn add packu
Bundle
packu -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
--exclude or -e to exclude dependencies from the bundle
Minify
You can minify any file a folder or just a single file.
packu minify -i src -o build
ZIP
Mention the files you want to include in the archive and make sure to not forget the output.
packu zip -f some.png other.png image.png -o myarchive.zip