İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
7466 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

thank you!

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Haz 23
2018
1
May 23
1962
1
Eki 22
4131
2
Tem 22
3087
0
May 20
3169