Is there a way to remove or override base js files asseted. i want to disable some file thanks
此问题已终结
1
回复
10285
查看
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
|
4005 | ||
|
|
1
5月 23
|
3865 | ||
|
|
1
10月 22
|
6262 | ||
|
|
2
7月 22
|
5492 | ||
|
|
0
5月 20
|
4678 |