Browse Source

update README.mdd

Sendya 6 năm trước cách đây
mục cha
commit
3397f2cd37
1 tập tin đã thay đổi với 15 bổ sung1 xóa
  1. 15 1
      README.md

+ 15 - 1
README.md

@@ -104,7 +104,21 @@ yarn run lint
     }
   }
 ```
-
+- 按需加载  修改文件 `babel.config.js` 并且引入 `babel-plugin-import` 开发依赖
+```ecmascript 6
+module.exports = {
+  presets: [
+    '@vue/app'
+  ],
+  plugins: [
+    [ "import", {
+      "libraryName": "ant-design-vue",
+      "libraryDirectory": "es",
+      "style": "css"
+    } ]
+  ]
+}
+```
 
 
 附属文档