preact-netlify:Preact的netlify CMS模板

时间:2021-04-28 19:35:55
【文件属性】:
文件名称:preact-netlify:Preact的netlify CMS模板
文件大小:5.93MB
文件格式:ZIP
更新时间:2021-04-28 19:35:55
JavaScript 博客 CLI命令 # 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 有关工作原理的详细说明,请参阅。 注意:预渲染时,模块作为组件在大多数Web API不可用的Node.js环境中执行。 为了解决这个问题,请将该代码包装在检查中,例如if (typeof window !== 'undefined') 。 不要在build命令中添加preact build --no-prerender ,因为这会阻止博客文章的呈现。
【文件预览】:
preact-netlify-master
----.gitignore(45B)
----README.md(693B)
----prerender-urls.js(976B)
----content()
--------images()
--------blog()
----preact.config.js(486B)
----tests()
--------__mocks__()
--------header.test.js(436B)
----package.json(2KB)
----src()
--------components()
--------crawler()
--------routes()
--------manifest.json(439B)
--------template.html(1KB)
--------static()
--------index.js(75B)
--------style()
--------assets()
----.babelrc(122B)
----.netlify()
--------state.json(53B)
----yarn.lock(526KB)
----netlify.toml(136B)

网友评论