All Projects → preactjs → preact-netlify

preactjs / preact-netlify

Licence: other
Preact's netlify CMS template

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

blog

CLI Commands

# 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.

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].