From 557a4c2329a38bf243659eabf1ff39d878a38abd Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 14 Oct 2023 12:50:21 +0200 Subject: [PATCH] Chore: initial config section in README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index b12d69a..fbbe1da 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,18 @@ npm run dev 4. open the browser to `https://localhost:3000` (or what the dev server said) +## McFly config +To tell McFly you want to use components, pass `registerComponents()` as `onBuild` one callback + +```js +import registerComponents from "./packages/register-components"; +import defineConfig from "./packages/define-config"; + +export default defineConfig({ + onBuild: [registerComponents()] +}); +``` ## More info