https://github.com/preactjs/preact-netlify
Preact's netlify CMS template
https://github.com/preactjs/preact-netlify
Last synced: 8 months ago
JSON representation
Preact's netlify CMS template
- Host: GitHub
- URL: https://github.com/preactjs/preact-netlify
- Owner: preactjs
- Created: 2019-08-13T23:57:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T16:11:00.000Z (over 3 years ago)
- Last Synced: 2024-04-14T01:02:14.200Z (about 2 years ago)
- Language: JavaScript
- Size: 9.24 MB
- Stars: 16
- Watchers: 4
- Forks: 11
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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.