Chore: initial config section in README.md

This commit is contained in:
Ayo Ayco 2023-10-14 12:50:21 +02:00 committed by GitHub
parent 29ad1f1448
commit 557a4c2329
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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