packu

2.1.0 • Public • Published

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

Package Sidebar

Install

npm i packu

Weekly Downloads

1

Version

2.1.0

License

Apache-2.0

Unpacked Size

2.16 MB

Total Files

9

Last publish

Collaborators

  • unvented