Skip to Content
Menu
This question has been flagged
1 Reply
8522 Views

 Is there a way to remove or override base js files asseted. i want to disable some file thanks

Avatar
Discard
Best Answer

Yes, you can just inherit web.assets_backend and xpath target what want to remove.
Like this :

<template id="assets_common" inherit_id="web.assets_common">
<xpath expr="script[@src='/password_security/static/src/js/password_gauge.js']" position="replace"/>
<xpath expr="script[@src='/password_security/static/lib/zxcvbn/zxcvbn.min.js']" position="replace"/>
</template>
Avatar
Discard
Author

thank you!

Related Posts Replies Views Activity
1
Jun 23
2621
1
May 23
2562
1
Oct 22
4731
2
Jul 22
3915
0
May 20
3644