Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 30 additions & 22 deletions website/docs/en/api/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,20 @@ The complete flags are as follows:
rspack build

Options:
--entry entry file [array]
-o, --output-path output path dir [string]
-m, --mode mode [string]
-w, --watch watch [boolean] [default: false]
--env env passed to config function [array]
--node-env sets process.env.NODE_ENV to be specified value [string]
-d, --devtool devtool [boolean] [default: false]
--configName Name of the configuration to use. [array]
--analyze analyze [boolean] [default: false]
--json emit stats json
--profile capture timing information for each module
-c, --config config file [string]
--entry entry file [array]
-o, --output-path output path dir [string]
-m, --mode mode [string]
-w, --watch watch [boolean] [default: false]
--env env passed to config function [array]
--node-env sets process.env.NODE_ENV to be specified value [string]
-d, --devtool devtool [boolean] [default: false]
--configName Name of the configuration to use. [array]
--config-loader Specify the loader to load the config file, can be
`native` or `register`. [string] [default: "register"]
--analyze analyze [boolean] [default: false]
--json emit stats json
--profile capture timing information for each module
[boolean] [default: false]
```

Expand Down Expand Up @@ -76,17 +79,22 @@ The complete flags are as follows:
rspack dev

Options:
--entry entry file [array]
-o, --output-path output path dir [string]
-m, --mode mode [string]
-w, --watch watch [boolean] [default: false]
--env env passed to config function [array]
--node-env sets process.env.NODE_ENV to be specified value [string]
-d, --devtool devtool [boolean] [default: false]
--configName Name of the configuration to use. [array]
--hot enables hot module replacement
--port allows to specify a port to use [number]
--host allows to specify a hostname to use [string]
-c, --config config file [string]
--entry entry file [array]
-o, --output-path output path dir [string]
-m, --mode mode [string]
-w, --watch watch [boolean] [default: false]
--env env passed to config function [array]
--node-env sets process.env.NODE_ENV to be specified value [string]
-d, --devtool devtool [boolean] [default: false]
--configName Name of the configuration to use. [array]
--config-loader Specify the loader to load the config file, can be
`native` or `register`. [string] [default: "register"]
--hot enables hot module replacement
--port allows to specify a port to use [number]
--host allows to specify a hostname to use [string]
-v, --version Show version number [boolean]
-h, --help Show help [boolean]
```

## rspack preview
Expand Down