Skip to Content
Menu
This question has been flagged
1 Atsakyti
7489 Rodiniai

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

Portretas
Atmesti
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>
Portretas
Atmesti
Autorius

thank you!

Related Posts Replies Rodiniai Veikla
1
birž. 23
2031
1
geg. 23
1983
1
spal. 22
4143
2
liep. 22
3100
0
geg. 20
3183