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:
- Bench restart not working well (Bench restart doesn't work after update bench)
- workers not working (Bench restart error (spawn error))
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.