コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
7492 ビュー

 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
2031
1
5月 23
1983
1
10月 22
4146
2
7月 22
3100
0
5月 20
3183