Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
7516 Vues

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Auteur

thank you!

Publications associées Réponses Vues Activité
1
juin 23
2058
1
mai 23
1998
1
oct. 22
4163
2
juil. 22
3121
0
mai 20
3190