Browse Source

chore: update dev config

pull/1947/head
tanjinzhou 5 years ago
parent
commit
185241472a
  1. 51
      examples/index.html
  2. 5
      examples/index.js
  3. 2
      webpack.config.js

51
examples/index.html

@ -22,60 +22,9 @@
display: none; display: none;
} }
</style> </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> </head>
<body> <body>
<div id="app"></div> <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> </body>
</html> </html>

5
examples/index.js

@ -1,9 +1,10 @@
import 'babel-polyfill'; import 'babel-polyfill';
import Vue from 'vue'; import Vue from 'vue';
import App from './App.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({ new Vue({
el: '#app', el: '#app',

2
webpack.config.js

@ -37,8 +37,6 @@ module.exports = {
], ],
], ],
plugins: [ plugins: [
// libraryDirectory is "", because webpack alias doesn't seem to allow '/'
['import', { libraryName: 'ant-design-vue', style: true, libraryDirectory: '' }],
'transform-vue-jsx', 'transform-vue-jsx',
'transform-object-assign', 'transform-object-assign',
'transform-object-rest-spread', 'transform-object-rest-spread',

Loading…
Cancel
Save