Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
7526 Prikazi

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

Avatar
Opusti
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
Opusti
Avtor

thank you!

Related Posts Odgovori Prikazi Aktivnost
1
jun. 23
2067
1
maj 23
1998
1
okt. 22
4167
2
jul. 22
3124
0
maj 20
3195