Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k1r0s/preact-poi-starter
Preact Example App powered by Poi and BabelJS
https://github.com/k1r0s/preact-poi-starter
Last synced: 10 days ago
JSON representation
Preact Example App powered by Poi and BabelJS
- Host: GitHub
- URL: https://github.com/k1r0s/preact-poi-starter
- Owner: k1r0s
- Created: 2018-02-03T01:00:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-14T16:02:20.000Z (over 6 years ago)
- Last Synced: 2024-10-13T02:13:33.733Z (24 days ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Preact Poi starter
So whats the deal here?
Poi justs works. Of course Poi will try to look up a `.babelrc`. Since Preact has a different __jsx pragma__ you must have __transform-react-jsx__ plugin with `{ pragma: "h" }` opt at least to work with.
```json
{
"sourceMaps": true,
"presets": [
["es2015", { "loose":true }],
"stage-0"
],
"plugins": [
["transform-decorators-legacy"],
["transform-react-jsx", { "pragma": "h" }]
]
}
```For this example I added `transform-decorators-legacy` as well.
#### run development server
`npm run dev` aka `$ poi [root file]`
#### run production build
`npm run build` aka `$ poi build [root file]`