Is there a way to remove or override base js files asseted. i want to disable some file thanks
Denna fråga har flaggats
1
Besvara
10305
Vyer
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!
Njuter du av diskussionen? Läs inte bara, delta också!
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
|
1
juni 23
|
4010 | ||
|
|
1
maj 23
|
3871 | ||
|
|
1
okt. 22
|
6277 | ||
|
|
2
juli 22
|
5498 | ||
|
|
0
maj 20
|
4681 |