Chore: initial config section in README.md
This commit is contained in:
parent
29ad1f1448
commit
557a4c2329
1 changed files with 11 additions and 0 deletions
11
README.md
11
README.md
|
@ -54,7 +54,18 @@ npm run dev
|
||||||
|
|
||||||
4. open the browser to `https://localhost:3000` (or what the dev server said)
|
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
|
## More info
|
||||||
|
|
Loading…
Reference in a new issue