Skip to content

Commit 550a714

Browse files
committed
update README.mdd
1 parent 5faac83 commit 550a714

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,21 @@ yarn run lint
104104
}
105105
}
106106
```
107-
107+
- 按需加载 修改文件 `babel.config.js` 并且引入 `babel-plugin-import` 开发依赖
108+
```ecmascript 6
109+
module.exports = {
110+
presets: [
111+
'@vue/app'
112+
],
113+
plugins: [
114+
[ "import", {
115+
"libraryName": "ant-design-vue",
116+
"libraryDirectory": "es",
117+
"style": "css"
118+
} ]
119+
]
120+
}
121+
```
108122

109123

110124
附属文档

0 commit comments

Comments
 (0)