It’s possible to have multiple webpack config files, for example one for dev and one for prod. After creating the files they can be used with:
--config webpack.prod.js
which can be added to the scripts in
package.json
.2023-10-27
--config webpack.prod.js
package.json
.