From 185241472aefdbd38433847eb5e17edd965907a8 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Tue, 24 Mar 2020 18:33:19 +0800 Subject: [PATCH] chore: update dev config --- examples/index.html | 51 --------------------------------------------- examples/index.js | 5 +++-- webpack.config.js | 2 -- 3 files changed, 3 insertions(+), 55 deletions(-) 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',