Skip to Content
Menu
This question has been flagged
1 Odpoveď
7315 Zobrazenia

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

Avatar
Zrušiť
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
Zrušiť
Autor

thank you!

Related Posts Replies Zobrazenia Aktivita
1
jún 23
1858
1
máj 23
1808
1
okt 22
3921
2
júl 22
2905
0
máj 20
3056