Migrate command for webpack-cli
[![npm][downloads]][downloads-url]
This package contains the logic to migrate a project from one version to the other.
``bash`
npm i -D webpack-cli @webpack-cli/migrate
To run the package programmatically, install it as a dependency. When using the package programmatically, one does not have to install webpack-cli.
`js
const migrate = require('@webpack-cli/migrate').default;
// add null to mock process.env
migrate(null, null, inputPath, outputPath);
`
`bash``
npx webpack-cli migrate
[downloads]: https://img.shields.io/npm/dm/@webpack-cli/migrate.svg
[downloads-url]: https://www.npmjs.com/package/@webpack-cli/migrate