diff --git a/examples/index.html b/examples/index.html index 926b1c727..4f11be55b 100644 --- a/examples/index.html +++ b/examples/index.html @@ -22,60 +22,9 @@ display: none; } -
- - - - - diff --git a/examples/index.js b/examples/index.js index 2b0f85e96..b678b8d03 100644 --- a/examples/index.js +++ b/examples/index.js @@ -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', diff --git a/webpack.config.js b/webpack.config.js index a7cf884b6..e6c8875c5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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',