How to override 'barcode_scanner.js' file

Hello,
I have no idea to override ‘barcode_scanner.js’ file which is in erpnext/erpnext/public/js/utils/
Does anyone have an idea?

@CodeOne you have to include your files in custom_app/public/build.json & add previous files & new files too…

Hello @aashishvashisht6
I tried the solution you gave but it doesn’t work.
I want to override erpnext app’s barcode_scanner.js file. So I create a barcode_scanner.js in my custom_app which is in custom_app/public/js/utils. and I added it into ‘build.json’ in my custom_app.


It doesn’t work

@CodeOne can you share while file you want to overwrite in js…