mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: avoid to load analytics in iframe (#4300)
This commit is contained in:
parent
706e513725
commit
a94d49f12a
@ -3,8 +3,6 @@ const config = require('./webpack.dev.js');
|
|||||||
|
|
||||||
const isMinify = process.argv.indexOf('-p') !== -1;
|
const isMinify = process.argv.indexOf('-p') !== -1;
|
||||||
|
|
||||||
delete config.serve;
|
|
||||||
|
|
||||||
module.exports = Object.assign(config, {
|
module.exports = Object.assign(config, {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: {
|
entry: {
|
||||||
|
@ -10,13 +10,16 @@
|
|||||||
<title>Vant - 轻量、可靠的移动端 Vue 组件库</title>
|
<title>Vant - 轻量、可靠的移动端 Vue 组件库</title>
|
||||||
<script>window.Promise || document.write('<script src="//img.yzcdn.cn/huiyi/build/h5/js/pinkie.min.js"><\/script>');</script>
|
<script>window.Promise || document.write('<script src="//img.yzcdn.cn/huiyi/build/h5/js/pinkie.min.js"><\/script>');</script>
|
||||||
<script>
|
<script>
|
||||||
var _hmt = _hmt || [];
|
// avoid to load analytics in iframe
|
||||||
(function() {
|
if (window.top === window) {
|
||||||
var hm = document.createElement("script");
|
var _hmt = _hmt || [];
|
||||||
hm.src = "https://hm.baidu.com/hm.js?ad6b5732c36321f2dafed737ac2da92f";
|
(function() {
|
||||||
var s = document.getElementsByTagName("script")[0];
|
var hm = document.createElement("script");
|
||||||
s.parentNode.insertBefore(hm, s);
|
hm.src = "https://hm.baidu.com/hm.js?ad6b5732c36321f2dafed737ac2da92f";
|
||||||
})();
|
var s = document.getElementsByTagName("script")[0];
|
||||||
|
s.parentNode.insertBefore(hm, s);
|
||||||
|
})();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body ontouchstart>
|
<body ontouchstart>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user