Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit 5ca5748

Browse files
staydecentdevelopit
authored andcommitted
Document usage with Brunch (#386)
* Document usage with Brunch * Fix typo
1 parent 469e791 commit 5ca5748

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,24 @@ All you have to do is tell babel to process jsx with 'h' and add an alias for `r
124124
}
125125
```
126126

127+
## Usage with Brunch
128+
129+
Using `preact-compat` with Brunch requires no extra plugins.
130+
131+
In your `brunch-config.js` you can export an [`npm` object](http://brunch.io/docs/config#-npm-) to configure aliases:
132+
133+
```js
134+
// ...
135+
exports.npm = {
136+
enabled: true,
137+
aliases: {
138+
'react': 'preact-compat',
139+
'react-dom': 'preact-compat'
140+
}
141+
}
142+
// ...
143+
```
144+
127145

128146
## Once Aliased
129147

0 commit comments

Comments
 (0)