Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7482 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>
Ảnh đại diện
Huỷ bỏ
Tác giả

thank you!

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 23
2026
1
thg 5 23
1980
1
thg 10 22
4141
2
thg 7 22
3096
0
thg 5 20
3181