Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
7882 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
2270
1
mai 23
2205
1
oct. 22
4367
2
juil. 22
3420
0
mai 20
3317