feat(@vant/cli): add enableVConsole option (#9527)

This commit is contained in:
neverland
2021-09-20 17:18:08 +08:00
committed by GitHub
parent 3a8bb909fd
commit 751a263999
3 changed files with 16 additions and 1 deletions
+6
View File
@@ -13,6 +13,12 @@
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<% if (enableVConsole) { %>
<script src="https://unpkg.com/vconsole/dist/vconsole.min.js"></script>
<script>
var vConsole = new window.VConsole();
</script>
<% } %>
<% if (baiduAnalytics) { %>
<script>
// avoid to load analytics in iframe