mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-29 18:48:32 +08:00
chore: update dev config
This commit is contained in:
parent
ff812128e5
commit
185241472a
@ -22,60 +22,9 @@
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
if (location.host === 'ant-design-vue.gitee.io' || location.host === 'vue.ant.design') {
|
||||
location.replace(location.href.replace(location.host, 'www.antdv.com'));
|
||||
}
|
||||
var _hmt = _hmt || [];
|
||||
var srcMap = {
|
||||
'ant-design-vue.gitee.io': 'https://hm.baidu.com/hm.js?1e30265f06f76fabfcdb7ed272017441',
|
||||
'vue.ant.design': 'https://hm.baidu.com/hm.js?f0ba868f114e674b816b4880f7525811',
|
||||
'www.antdv.com': 'https://hm.baidu.com/hm.js?4ad38a0c8f0960d731b654425317da22',
|
||||
};
|
||||
var src =
|
||||
srcMap[location.host] || 'https://hm.baidu.com/hm.js?4ad38a0c8f0960d731b654425317da22';
|
||||
(function() {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = src;
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151755889-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-151755889-1');
|
||||
</script>
|
||||
<!-- Hotjar Tracking Code for http://vue.ant.design -->
|
||||
<script>
|
||||
(function(h, o, t, j, a, r) {
|
||||
if (location.href.indexOf('iframe') === -1) {
|
||||
h.hj =
|
||||
h.hj ||
|
||||
function() {
|
||||
(h.hj.q = h.hj.q || []).push(arguments);
|
||||
};
|
||||
h._hjSettings = {
|
||||
hjid: 1359441,
|
||||
hjsv: 6,
|
||||
};
|
||||
a = o.getElementsByTagName('head')[0];
|
||||
r = o.createElement('script');
|
||||
r.async = 1;
|
||||
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
|
||||
a.appendChild(r);
|
||||
}
|
||||
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,9 +1,10 @@
|
||||
import 'babel-polyfill';
|
||||
import Vue from 'vue';
|
||||
import App from './App.vue';
|
||||
import { Button } from 'ant-design-vue';
|
||||
import Antd from 'ant-design-vue';
|
||||
import 'ant-design-vue/style.js';
|
||||
|
||||
Vue.use(Button);
|
||||
Vue.use(Antd);
|
||||
|
||||
new Vue({
|
||||
el: '#app',
|
||||
|
@ -37,8 +37,6 @@ module.exports = {
|
||||
],
|
||||
],
|
||||
plugins: [
|
||||
// libraryDirectory is "", because webpack alias doesn't seem to allow '/'
|
||||
['import', { libraryName: 'ant-design-vue', style: true, libraryDirectory: '' }],
|
||||
'transform-vue-jsx',
|
||||
'transform-object-assign',
|
||||
'transform-object-rest-spread',
|
||||
|
Loading…
Reference in New Issue
Block a user