nx/docs/angular/api-node/generators/migrate-to-webpack-5.md
Craigory V Coppola a1ccc87a07
docs(misc): documentation headers should include collectionName for searchability (#6451)
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>
2021-07-21 11:40:59 -04:00

28 lines
516 B
Markdown

# @nrwl/node:migrate-to-webpack-5
Add webpack 5 compatible dependencies to the workspace
## Usage
```bash
nx generate migrate-to-webpack-5 ...
```
```bash
nx g webpack5 ... # same
```
By default, Nx will search for `migrate-to-webpack-5` in the default collection provisioned in `angular.json`.
You can specify the collection explicitly as follows:
```bash
nx g @nrwl/node:migrate-to-webpack-5 ...
```
Show what will be generated without writing to disk:
```bash
nx g migrate-to-webpack-5 ... --dry-run
```