Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
7413 Visninger

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

Avatar
Kassér
Bedste svar

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
Kassér
Forfatter

thank you!

Related Posts Besvarelser Visninger Aktivitet
1
jun. 23
1944
1
maj 23
1895
1
okt. 22
4056
2
jul. 22
3009
0
maj 20
3145