Is there a way to remove or override base js files asseted. i want to disable some file thanks
Această întrebare a fost marcată
1
Răspunde
10188
Vizualizări
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!
Îți place discuția? Nu doar citi, alătură-te!
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
1
iun. 23
|
3896 | ||
|
|
1
mai 23
|
3787 | ||
|
|
1
oct. 22
|
6126 | ||
|
|
2
iul. 22
|
5415 | ||
|
|
0
mai 20
|
4602 |