Is there a way to remove or override base js files asseted. i want to disable some file thanks
Bu soru işaretlendi
1
Cevapla
10228
Görünümler
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>
thank you!
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
1
Haz 23
|
3906 | ||
|
|
1
May 23
|
3800 | ||
|
|
1
Eki 22
|
6135 | ||
|
|
2
Tem 22
|
5432 | ||
|
|
0
May 20
|
4606 |