After some discussion with @Jdrewniak, I was aware that the gulp-based build steps in portals' codebase "depends on a web of unmaintained plugins", and should be completely rewritten.
Possible alternative of gulp:
- grunt: Used a lot in Wikimedia projects
- Use vanilla NodeJS scripts
Possible alternative of gulp-useref and other tools to build portal html:
- rollup
- vite (Used in Codex)