@webpack-cli/migrate

Migrate command for webpack-cli

Usage no npm install needed!

<script type="module">
  import webpackCliMigrate from 'https://cdn.skypack.dev/@webpack-cli/migrate';
</script>

README

webpack-cli migrate

npm

Description

This package contains the logic to migrate a project from one version to the other.

Installation

npm i -D webpack-cli @webpack-cli/migrate

Usage

To run the package programmatically, install it as a dependency. When using the package programmatically, one does not have to install webpack-cli.

Node

const migrate = require('@webpack-cli/migrate').default;

// add null to mock process.env
migrate(null, null, inputPath, outputPath);

CLI (via webpack-cli)

npx webpack-cli migrate