My custom app is not being bundled

My Custom Application is not asset is not being generated by bench build.

@revant_one :pray:

I have added a bundle file to the hooks.py file and public.js but its not still built when I use the instructions for deploying custom apps.

frappe_docker/docs/custom-apps.md at main Β· frappe/frappe_docker (github.com)

The backend customization works but the front assets are returning a 404 and aren’t built.

Successfully installed arsh_customization-0.0.0
WARN: restart failed: Couldn't find supervisorctl in PATH
$ bench build
Assets for Release v15.41.0 don't exist
βœ” Application Assets Linked                                            /erpnext/node_modules


yarn run v1.22.22
$ node esbuild --production --run-build-command
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
File                                                        Size

frappe/dist/js/
β”œβ”€ bootstrap-4-web.bundle.FOZOVELL.js                       1.73 Kb
β”œβ”€ controls.bundle.3ZX7DV7X.js                              1235.66 Kb
β”œβ”€ data_import_tools.bundle.QWANZLSZ.js                     126.58 Kb
β”œβ”€ desk.bundle.YRD3VSYK.js                                  1347.22 Kb
β”œβ”€ dialog.bundle.JUOABYOR.js                                57.42 Kb
β”œβ”€ form.bundle.L3OTDJB4.js                                  168.08 Kb
β”œβ”€ frappe-web.bundle.FWWFRIJG.js                            829.91 Kb
β”œβ”€ libs.bundle.TIV7ZGVY.js                                  556.25 Kb
β”œβ”€ list.bundle.IIIWXXWL.js                                  196.38 Kb
β”œβ”€ logtypes.bundle.EKN7LWKW.js                              0.73 Kb
β”œβ”€ onboarding_tours.bundle.RAUR6X4Z.js                      7.60 Kb
β”œβ”€ report.bundle.3EFDHAM3.js                                197.71 Kb
β”œβ”€ sentry.bundle.IPS6PK2M.js                                69.50 Kb
β”œβ”€ telemetry.bundle.LKEZCADB.js                             2.59 Kb
β”œβ”€ user_profile_controller.bundle.ZJ6AYZ5P.js               11.96 Kb
β”œβ”€ video_player.bundle.DUYYLSFO.js                          120.67 Kb
β”œβ”€ web_form.bundle.WTCCB54Y.js                              1427.61 Kb
β”œβ”€ form_builder.bundle.RD67JVSH.js                          798.58 Kb
β”œβ”€ form_builder.bundle.2JQOQVZM.css                         23.19 Kb
β”œβ”€ print_format_builder.bundle.3YCNST3U.js                  685.24 Kb
β”œβ”€ print_format_builder.bundle.FFVPBPB6.css                 5.54 Kb
β”œβ”€ workflow_builder.bundle.CXYI44LF.js                      351.72 Kb
β”œβ”€ workflow_builder.bundle.NCYHBU52.css                     11.02 Kb
β”œβ”€ build_events.bundle.BCX32TWL.js                          105.71 Kb
β”œβ”€ build_events.bundle.CZHNP7YC.css                         1.29 Kb
β”œβ”€ file_uploader.bundle.5SUMRMUP.js                         201.83 Kb
β”œβ”€ file_uploader.bundle.WV4MAVCJ.css                        6.53 Kb
└─ kanban_board.bundle.AS3FI5GX.js                          578.14 Kb

hrms/dist/js/
β”œβ”€ hierarchy-chart.bundle.5NWJGABT.js                       225.55 Kb
β”œβ”€ hrms.bundle.5WBVJVFP.js                                  11.97 Kb
β”œβ”€ interview.bundle.C7CDEMYA.js                             1.66 Kb
└─ performance.bundle.63UL5NS7.js                           3.70 Kb

erpnext/dist/js/
β”œβ”€ bank-reconciliation-tool.bundle.BZ246SAL.js              17.23 Kb
β”œβ”€ erpnext-web.bundle.J4A2DQB4.js                           0.29 Kb
β”œβ”€ erpnext.bundle.CK7NDWRF.js                               221.78 Kb
β”œβ”€ item-dashboard.bundle.DFIPMDTM.js                        10.24 Kb
β”œβ”€ point-of-sale.bundle.GS4QFC4S.js                         92.58 Kb
└─ bom_configurator.bundle.D2UVDA3I.js                      8.63 Kb

frappe/dist/css/
β”œβ”€ desk.bundle.2WWXGQD5.css                                 591.36 Kb
β”œβ”€ email.bundle.YHXLYOZO.css                                5.97 Kb
β”œβ”€ login.bundle.QD4B5PJ2.css                                32.29 Kb
β”œβ”€ print.bundle.UKZN7TVW.css                                203.37 Kb
β”œβ”€ print_format.bundle.Z5XDPJ2L.css                         186.11 Kb
β”œβ”€ report.bundle.4E74KO5R.css                               5.33 Kb
β”œβ”€ web_form.bundle.HQWAB5SG.css                             14.69 Kb
└─ website.bundle.RTE2HCYA.css                              443.79 Kb

hrms/dist/css/
└─ hrms.bundle.4YGVMQEN.css                                 6.06 Kb

erpnext/dist/css/
β”œβ”€ erpnext-web.bundle.BS3JPVHK.css                          2.86 Kb
β”œβ”€ erpnext.bundle.NITCLP5V.css                              44.14 Kb
└─ erpnext_email.bundle.7NRZ7VWW.css                        0.56 Kb

frappe/dist/css-rtl/
β”œβ”€ desk.bundle.YFUDCEND.css                                 591.87 Kb
β”œβ”€ email.bundle.3XPSRUCU.css                                5.98 Kb
β”œβ”€ login.bundle.T52GL6ZU.css                                32.29 Kb
β”œβ”€ print.bundle.WAVRVQBJ.css                                203.53 Kb
β”œβ”€ print_format.bundle.FDGORDBR.css                         186.24 Kb
β”œβ”€ report.bundle.U4VX7YIL.css                               5.33 Kb
β”œβ”€ web_form.bundle.Q64TGROY.css                             14.68 Kb
└─ website.bundle.HFDXKBVP.css                              443.95 Kb

hrms/dist/css-rtl/
└─ hrms.bundle.DJA6YZUW.css                                 6.07 Kb

erpnext/dist/css-rtl/
β”œβ”€ erpnext-web.bundle.UQNGT4FU.css                          2.87 Kb
β”œβ”€ erpnext.bundle.OYPAEUO5.css                              44.13 Kb
└─ erpnext_email.bundle.YAC7FCW4.css                        0.56 Kb

Have you added the entries in the hooks.py file
Example.

app_include_js = ['main.bundle.js']
app_include_css = ['style.bundle.css']

For more info check Asset Bundling