This package contains the logic to add new properties in a webpack configuration file. It will run a generator that prompts the user for questions of which property to add to their webpack configuration file.
npm i -D webpack-cli @webpack-cli/add
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 add = require("@webpack-cli/add").default;
add();
npx webpack-cli add