跳至內容
選單
此問題已被標幟
1 回覆
7323 瀏覽次數

 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
1863
1
5月 23
1815
1
10月 22
3930
2
7月 22
2913
0
5月 20
3060