Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7484 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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!

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 23
2027
1
พ.ค. 23
1981
1
ต.ค. 22
4142
2
ก.ค. 22
3097
0
พ.ค. 20
3182