Public/js folders

If I create a public/js folder manually, why it’s not working?
I declared the js file in the hooks.py too, but the system is not calling the custom file script, why?

@Leonardo_Augusto are you overriding existing js eg:

customer.js
if yes then there is the following way to write in hooks

  doctype_js = {
    	"Customer":["customize/customer.js"],
    	"Sales Order":["customize/sales_order.js"]
    }

and if your tring third party integration then you put your js and css there following link might help you

https://discuss.erpnext.com/t/build-json-and-custom-css/27138

have you created build.json file and have you run bench build?

1 Like

You have to run bench build again (to create the symlinks)