Skip to content

Wrapper around ncc that pipes the output into a zip archive.

License

Notifications You must be signed in to change notification settings

ofhouse/ncc-zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ncc-zip

Wrapper around ncc that pipes the output in a zip archive. Requires ncc as peer dependency.

Usage

npm i -g ncc-zip @vercel/ncc

ncc-zip <cmd> <opts>

E.g.

ncc build input.js -o dist.zip

Options

  -o, --out [file]         Output filename for build (defaults to dist.zip)
  -f, --filename [file]    Name of the main file in the zip (defaults to index)
  -c, --config [file]      Path to the ncc.config.json file
  -i, --ignore [asset]     Ignore asset(s) with name or glob pattern to be included in zip
  --license [file]         Adds a file containing licensing information to the output
  --compression            Level of compression to use (default 5)

Configuration of ncc

To configure ncc, you can create a ncc.config.json file (or add a "ncc" key to your package.json). For all available configuration options, see the "Programmatically From Node.js " section in the readme of the ncc package.

// ncc.config.json
{
  "externals": {
    "aws-sdk": "aws-sdk",
    "/aws-sdk(/.*)/": "aws-sdk$1"
  },
  "minify": true
}

License

MIT - see LICENSE for details.

About

Wrapper around ncc that pipes the output into a zip archive.

Resources

License

Stars

Watchers

Forks

Packages

No packages published