steal-tools optimize

  • function

Call steal-tools optimize from the command line.

steal-tools optimize [--OPTION_NAME OPTION_VALUE]...


  1. OPTION_NAME {String}

    Any config or options name in build.

  2. OPTION_VALUE {String}

    The value of OPTION_NAME.


Note: The steal-tools optimize command-line utility calls steal-tools.optimize internally. This page documents the specifics of the command-line utility. Read steal-tools.optimize's documentation for how to use the build in various workflows and detailed information on the options available.

steal-tools can be installed into the command line, like:

> npm install steal-tools -g

Then you can run steal-tools optimize, like:

> steal-tools optimize --config app/config.js --main app/app --target node

Or, you can access steal-tools in node_modules/.bin, like:

> ./node_modules/.bin/steal-tools optimize \
      --config app/config.js \
      --main app/app

To provide build targets pass any of the supported options separated by a space, like:

> steal-tools build --config app/config.js --main app/app --target web node

If you are using the npm plugin you don't need to specify --config or --main:

> steal-tools optimize

will default to package.json!npm as the config and build out to dist/.

Help us improve StealJS by taking our community survey