Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/StanGirard/preact-netlify-primates
https://github.com/StanGirard/preact-netlify-primates
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/StanGirard/preact-netlify-primates
- Owner: StanGirard
- Created: 2021-07-22T20:55:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-22T20:57:05.000Z (over 3 years ago)
- Last Synced: 2024-06-21T17:07:32.834Z (5 months ago)
- Language: JavaScript
- Size: 7.29 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - StanGirard/preact-netlify-primates - (others)
README
# blog
## CLI Commands
``` bash
# install dependencies
yarn# serve with hot reload at localhost:8080
yarn dev# build for production with minification
yarn build# run tests with jest and preact-render-spy
yarn test
```For detailed explanation on how things work, checkout the [CLI Readme](https://github.com/developit/preact-cli/blob/master/README.md).
Note: When pre-rendering, your module as components are executed in a Node.js environment, where most Web APIs are not available. To account for this, wrap that code in a check like `if (typeof window !== 'undefined')`.
Do not add `preact build --no-prerender` to the build command as it will prevent blog posts from rendering.