Updated Bench Build Documentation

The bench build command in the latest frappe update seems to not work as it previously did. It doesn’t minify the js code according to te build.json file as it used to do. Looking at the code a bit, it looks like Frappe has started using Javascript bundles . Is there updated documentation on the new build process? Below is what I get when running the new bench build command.

Still the same for me.
I’m on bench version 5.4.1

$> bench build
yarn run v1.22.10
$ FRAPPE_ENV=production node rollup/build.js
Production mode
✔ Built js/moment-bundle.min.js
✔ Built js/libs.min.js

Building frappe assets...

✔ Built js/checkout.min.js
✔ Built js/dialog.min.js
✔ Built js/modules.min.js
✔ Built js/social.min.js
✔ Built js/web_form.min.js
✔ Built js/list.min.js
✔ Built js/chat.js
✔ Built frappe/css/email.css
✔ Built js/bootstrap-4-web.min.js
✔ Built js/barcode_scanner.min.js
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
✔ Built js/frappe-web.min.js
✔ Built js/desk.min.js
✔ Built css/frappe-rtl.css
✔ Built css/printview.css
✔ Built js/frappe-recorder.min.js
✔ Built css/module.min.css
✔ Built css/list.min.css
✔ Built css/report.min.css
✔ Built css/form.min.css
✔ Built css/frappe-chat-web.css
✔ Built css/web_form.css
✔ Built js/control.min.js
✔ Built css/desk.min.css
✔ Built js/form.min.js
✔ Built css/frappe-web-b4.css
✔ Built js/data_import_tools.min.js
✔ Built js/report.min.js
✨  Done in 38.139s

Building erpnext assets...

✔ Built js/erpnext-web.min.js
✔ Built css/erpnext.css
✔ Built css/marketplace.css
✔ Built js/item-dashboard.min.js
✔ Built js/erpnext.min.js
✔ Built css/erpnext-web.css
✔ Built js/marketplace.min.js
✨  Done in 10.087s

But I did experience some glitch on the bench operation:

I don’t know if these are caused by my install process or the bench. But it happened (in 2-3 servers) after the update to v5.4.1

I think the bench build command is defined in the frappe app not bench. Try updating to the latest development branch on frappe and you’ll see what I mean. Previous versions of frappe are working fine. I’ve just reset my local installation to the frappe version (develop) from March this year and the bench build command works fine now. I’ll wait for an updated documentation before I update to the latest version.