Got it! Thanks for the pointer. I think I managed to run it successfully. I will also make sure that the changes won’t get overwritten by a new WP ERP version (will merge my customizations every time).
The exact command I used was npx webconfig --config webpack.config.js