From e9c30efd166dd15ce62067a7b539c061f6c58396 Mon Sep 17 00:00:00 2001 From: g8up Date: Fri, 28 Jun 2019 22:25:58 +0800 Subject: [PATCH] fix the example of multiple modules --- README.md | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index aa1f7073..56853525 100644 --- a/README.md +++ b/README.md @@ -54,20 +54,25 @@ Via `.babelrc` or babel-loader. } ``` -## Multiple Module +## Multiple Modules ```javascript { - "plugins": [xxx, - ["component", { - libraryName: "antd", - style: true, - }, "antd"], - ["component", { - libraryName: "test-module", - style: true, - }, "test-module"] - ] -} + "plugins": [ + [ + "component", + [ + { + "libraryName": "antd", + "style": true + }, + { + "libraryName": "test-module", + "style": true + }, + // ... + ] + ] + } ``` ### Component directory structure