[Doc] add tips of babel-plugin-import

This commit is contained in:
陈嘉涵 2018-03-21 16:23:03 +08:00
parent 11f9715793
commit 05dd8fec0e
2 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,7 @@ import 'vant/lib/vant-css/button.css';
```
#### 3. Import all components
If you configured babel-plugin-import, you won't be allowed to import all components.
```js
import Vue from 'vue';

View File

@ -38,6 +38,7 @@ import 'vant/lib/vant-css/button.css';
```
#### 方式三. 导入所有组件
配置 babel-plugin-import 插件后将不允许导入所有组件的方式
```js
import Vue from 'vue';