Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
7064 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

thank you!

Related Posts Odpovědi Zobrazení Aktivita
1
čvn 23
1560
1
kvě 23
1487
1
říj 22
3687
2
čvc 22
2468
0
kvě 20
2896