Is there a way to remove or override base js files asseted. i want to disable some file thanks
La domanda è stata contrassegnata
1
Rispondi
10298
Visualizzazioni
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!
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
1
giu 23
|
4009 | ||
|
|
1
mag 23
|
3871 | ||
|
|
1
ott 22
|
6276 | ||
|
|
2
lug 22
|
5496 | ||
|
|
0
mag 20
|
4680 |