Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
7513 Visualizações

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

Avatar
Cancelar
Melhor resposta

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
Cancelar
Autor

thank you!

Publicações relacionadas Respostas Visualizações Atividade
1
jun. 23
2046
1
mai. 23
1997
1
out. 22
4159
2
jul. 22
3119
0
mai. 20
3190