Skip to content

Commit 1852414

Browse files
committed
chore: update dev config
1 parent ff81212 commit 1852414

File tree

3 files changed

+3
-55
lines changed

3 files changed

+3
-55
lines changed

examples/index.html

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -22,60 +22,9 @@
2222
display: none;
2323
}
2424
</style>
25-
<script>
26-
if (location.host === 'ant-design-vue.gitee.io' || location.host === 'vue.ant.design') {
27-
location.replace(location.href.replace(location.host, 'www.antdv.com'));
28-
}
29-
var _hmt = _hmt || [];
30-
var srcMap = {
31-
'ant-design-vue.gitee.io': 'https://hm.baidu.com/hm.js?1e30265f06f76fabfcdb7ed272017441',
32-
'vue.ant.design': 'https://hm.baidu.com/hm.js?f0ba868f114e674b816b4880f7525811',
33-
'www.antdv.com': 'https://hm.baidu.com/hm.js?4ad38a0c8f0960d731b654425317da22',
34-
};
35-
var src =
36-
srcMap[location.host] || 'https://hm.baidu.com/hm.js?4ad38a0c8f0960d731b654425317da22';
37-
(function() {
38-
var hm = document.createElement('script');
39-
hm.src = src;
40-
var s = document.getElementsByTagName('script')[0];
41-
s.parentNode.insertBefore(hm, s);
42-
})();
43-
</script>
4425
</head>
4526

4627
<body>
4728
<div id="app"></div>
48-
<!-- Global site tag (gtag.js) - Google Analytics -->
49-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151755889-1"></script>
50-
<script>
51-
window.dataLayer = window.dataLayer || [];
52-
function gtag() {
53-
dataLayer.push(arguments);
54-
}
55-
gtag('js', new Date());
56-
57-
gtag('config', 'UA-151755889-1');
58-
</script>
59-
<!-- Hotjar Tracking Code for http://vue.ant.design -->
60-
<script>
61-
(function(h, o, t, j, a, r) {
62-
if (location.href.indexOf('iframe') === -1) {
63-
h.hj =
64-
h.hj ||
65-
function() {
66-
(h.hj.q = h.hj.q || []).push(arguments);
67-
};
68-
h._hjSettings = {
69-
hjid: 1359441,
70-
hjsv: 6,
71-
};
72-
a = o.getElementsByTagName('head')[0];
73-
r = o.createElement('script');
74-
r.async = 1;
75-
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
76-
a.appendChild(r);
77-
}
78-
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
79-
</script>
8029
</body>
8130
</html>

examples/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import 'babel-polyfill';
22
import Vue from 'vue';
33
import App from './App.vue';
4-
import { Button } from 'ant-design-vue';
4+
import Antd from 'ant-design-vue';
5+
import 'ant-design-vue/style.js';
56

6-
Vue.use(Button);
7+
Vue.use(Antd);
78

89
new Vue({
910
el: '#app',

webpack.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ module.exports = {
3737
],
3838
],
3939
plugins: [
40-
// libraryDirectory is "", because webpack alias doesn't seem to allow '/'
41-
['import', { libraryName: 'ant-design-vue', style: true, libraryDirectory: '' }],
4240
'transform-vue-jsx',
4341
'transform-object-assign',
4442
'transform-object-rest-spread',

0 commit comments

Comments
 (0)