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

1 Like

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.