This package contains the logic to remove properties of a webpack configuration file. It will run a generator that prompts the user for questions of which property to remove in their webpack configuration file.
npm i -D webpack-cli @webpack-cli/remove
To run the scaffolding instance programmatically, install it as a dependency. When using the package programmatically, one does not have to install webpack-cli.
const remove = require("@webpack-cli/remove").default;
remove();
npx webpack-cli remove