콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
7560 화면

 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!

관련 게시물 답글 화면 활동
1
6월 23
2074
1
5월 23
2020
1
10월 22
4177
2
7월 22
3138
0
5월 20
3200