nx/docs/react/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

518 B

@nrwl/node:migrate-to-webpack-5

Add webpack 5 compatible dependencies to the workspace

Usage

nx generate migrate-to-webpack-5 ...
nx g webpack5 ... # same

By default, Nx will search for migrate-to-webpack-5 in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/node:migrate-to-webpack-5 ...

Show what will be generated without writing to disk:

nx g migrate-to-webpack-5 ... --dry-run