Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
7515 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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
Verwerfen
Autor

thank you!

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juni 23
2046
1
Mai 23
1997
1
Okt. 22
4159
2
Juli 22
3120
0
Mai 20
3190