Skip to Content
Menú
This question has been flagged
1 Respondre
6959 Vistes

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

Avatar
Descartar
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
Descartar
Autor

thank you!

Related Posts Respostes Vistes Activitat
1
de juny 23
1412
1
de maig 23
1328
1
d’oct. 22
3469
2
de jul. 22
2351
0
de maig 20
2747