Build settings.
Name | Description | Path | CLI option | Default | Type | Required | Can be empty | Extensions |
---|---|---|---|---|---|---|---|---|
disableProgressbar | Should the progress bar be disabled for builds. | build.disableProgressbar | --build-disableProgressbar | false |
Boolean |
Yes | roc-package-webpack-dev | |
input | The entry point for the build. | build.input | --build-input | "src/index.js" |
Array(Filepath) / Filepath |
Yes | No | roc-abstract-package-base-dev, roc-package-webpack-dev |
mode | What mode the application should be built for. Possible values are "dev" and "dist". | build.mode | --build-mode | "dist" |
`/^dev | dist$/i` | Yes | No |
name | The name of the generated application bundle. | build.name | --build-name | "app" |
Array(String) / String |
Yes | No | roc-package-webpack-dev |
output | The output directory for the build. | build.output | --build-output | "build" |
Array(Filepath) / Filepath |
Yes | No | roc-abstract-package-base-dev, roc-package-webpack-dev |
path | The basepath for the application. | build.path | --build-path | "/" |
Filepath |
Yes | No | roc-package-webpack-dev |
targets | For what targets the code should be built for. | build.targets | --build-targets | ["node"] |
Array(String) |
Yes | No | roc-abstract-package-base-dev, roc-package-webpack-node-dev |
Development settings.
Name | Description | Path | CLI option | Default | Type | Required | Can be empty | Extensions |
---|---|---|---|---|---|---|---|---|
debug | Filter for debug messages that should be shown during development, see https://npmjs.com/package/debug. | dev.debug | --dev-debug | String |
No | No | roc-abstract-package-base-dev | |
host | The host to use during development, will be automatically defined if left empty. | dev.host | --dev-host | String |
No | No | roc-package-webpack-dev | |
port | Port for the dev server. | dev.port | --dev-port | 3001 |
Integer |
Yes | roc-package-webpack-dev | |
watch | Files/folders that should trigger a restart of the server. | dev.watch | --dev-watch | ["roc.config.js"] |
Filepath / Array(Filepath) |
Yes | roc-package-webpack-node-dev |
Name | Description | Path | CLI option | Default | Type | Required | Can be empty | Extensions |
---|---|---|---|---|---|---|---|---|
startBundle | Relative path to a bundle to start when calling "start", is not needed in most cases. | runtime.startBundle | --runtime-startBundle | Filepath |
No | No | roc-plugin-start |